Skip to content

Commit ce1ec2e

Browse files
committed
Fix music play position issue
1 parent 9189994 commit ce1ec2e

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ android {
4141
else -> 0
4242
}
4343

44-
val vCode = 442
44+
val vCode = 445
4545
versionCode = vCode - singleAbiNum
46-
versionName = "2.1.19"
46+
versionName = "2.1.20"
4747

4848
ndk {
4949
//noinspection ChromeOsAbiSupport

app/src/main/java/com/ismartcoding/plain/features/AudioPlayer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ object AudioPlayer {
197197
}
198198

199199
LogCat.d("skipTo: ${audio.path}")
200-
TempData.audioPlayPosition = 0
201200
coMain {
202201
ensurePlayer(context) {
202+
TempData.audioPlayPosition = 0
203203
doPlay(audio)
204204
}
205205
}

app/src/main/java/com/ismartcoding/plain/services/QSTileService.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import android.service.quicksettings.TileService
77
import com.ismartcoding.lib.channel.receiveEventHandler
88
import com.ismartcoding.lib.helpers.CoroutinesHelper.coIO
99
import com.ismartcoding.lib.logcat.LogCat
10+
import com.ismartcoding.plain.MainApp
1011
import com.ismartcoding.plain.R
1112
import com.ismartcoding.plain.TempData
1213
import com.ismartcoding.plain.enums.HttpServerState
@@ -90,7 +91,7 @@ class QSTileService : TileService() {
9091

9192
// Launch the app with unlockAndRun
9293
unlockAndRun {
93-
val intent = Intent(this, Class.forName("com.ismartcoding.plain.ui.MainActivity"))
94+
val intent = Intent(MainApp.instance, Class.forName("com.ismartcoding.plain.ui.MainActivity"))
9495
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
9596
intent.putExtra("start_web_service", true)
9697
startActivity(intent)
@@ -103,7 +104,7 @@ class QSTileService : TileService() {
103104
qsTile?.updateTile()
104105

105106
coIO {
106-
WebPreference.putAsync(this@QSTileService, false)
107+
WebPreference.putAsync(MainApp.instance, false)
107108
HttpServerManager.stopServiceAsync(this@QSTileService)
108109
setState(Tile.STATE_INACTIVE)
109110
}

gradle/libs.versions.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ bcprovJdk15onVersion="1.70"
55
coil="3.3.0"
66
coreKtxVersion="1.16.0"
77
firebaseCrashlyticsGradleVersion="3.0.6"
8-
glideVersion="5.0.4"
8+
glideVersion="5.0.5"
99
googleServicesVersion="4.4.3"
10-
gradle= "8.11.1"
10+
gradle= "8.11.2"
1111
accompanistDrawablepainterVersion = "0.37.3"
1212
cameraCoreVersion = "1.4.2"
13-
compose = "1.9.0"
13+
compose = "1.9.1"
1414
activityComposeVersion = "1.10.1"
15-
composeBom = "2025.08.01"
15+
composeBom = "2025.09.00"
1616
coreSplashscreenVersion = "1.0.1"
1717
coreVersion = "3.5.3"
1818
datastorePreferencesVersion = "1.1.7"
1919
firebaseCrashlyticsKtxVersion = "19.4.4"
2020
firebaseBomVersion = "34.2.0"
21-
gsonVersion="2.13.1"
21+
gsonVersion="2.13.2"
2222
jsoupVersion="1.15.3"
2323
kgraphql = "0.19.0"
24-
kotlin ="2.2.10"
24+
kotlin ="2.2.20"
2525
kotlinxDatetimeVersion="0.6.1"
2626
kotlinxSerializationJsonVersion="1.9.0"
2727
kotlinxCoroutinesVersion ="1.10.2"

0 commit comments

Comments
 (0)