diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3e486f8..285ac4b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -21,8 +21,8 @@ android { applicationId = "com.ztftrue.music" minSdk = 30 targetSdk = 34 - versionCode = 15 - versionName = "0.1.15" + versionCode = 16 + versionName = "0.1.16" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/src/main/java/com/ztftrue/music/MainActivity.kt b/app/src/main/java/com/ztftrue/music/MainActivity.kt index ddf735f..ff2159a 100644 --- a/app/src/main/java/com/ztftrue/music/MainActivity.kt +++ b/app/src/main/java/com/ztftrue/music/MainActivity.kt @@ -491,9 +491,9 @@ class MainActivity : ComponentActivity() { // musicViewModel.musicQueue.value = musicViewModel.musicListMap[playList?.id] } else if (it.getInt("type") == EVENT_MEDIA_ITEM_Change) { // before switch to another music, must clear lyrics - musicViewModel.currentCaptionList.clear() val index = it.getInt("index") if (index >= 0 && musicViewModel.musicQueue.size > index && index != musicViewModel.currentPlayQueueIndex.intValue) { + musicViewModel.currentCaptionList.clear() musicViewModel.currentMusicCover.value = null musicViewModel.currentPlay.value = musicViewModel.musicQueue[index]