Skip to content

Commit

Permalink
Merge pull request #30 from ZTFtrue/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
ZTFtrue authored Apr 29, 2024
2 parents 8fba777 + 7d5d0ac commit 7bd1720
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/ztftrue/music/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7bd1720

Please sign in to comment.