From a86f9d4fad5ee60e072f7e26e3f87ca91f71c7df Mon Sep 17 00:00:00 2001 From: ztftrue Date: Mon, 29 Apr 2024 21:15:29 +0800 Subject: [PATCH 1/2] update app version --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { From 0425bded4730fab14b77bbee153f64ea28d00ae0 Mon Sep 17 00:00:00 2001 From: ztftrue Date: Mon, 29 Apr 2024 22:38:34 +0800 Subject: [PATCH 2/2] fix:no lyrics when drag progress slider --- app/src/main/java/com/ztftrue/music/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]