Skip to content

Commit

Permalink
Fixed #485
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrave-dev committed Aug 12, 2024
1 parent 8c0d054 commit 8696328
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {

android {
namespace = "com.maxrave.simpmusic"
compileSdk = 35
compileSdk = 34

defaultConfig {
applicationId = "com.maxrave.simpmusic"
Expand Down
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 19,
"versionName": "0.2.3",
"versionCode": 20,
"versionName": "0.2.3-hotfix",
"outputFile": "app-release.apk"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,12 @@ class PlaylistViewModel
if (count == list.size && count > 0) {
id.value?.let { updatePlaylistDownloadState(it, DownloadState.STATE_DOWNLOADED) }
}
mainRepository.getPlaylist(id.value!!).collect { album ->
if (album != null) {
if (playlistEntity.value?.downloadState != album.downloadState) {
_playlistEntity.value = album
id.value?.let {
mainRepository.getPlaylist(it).collect { album ->
if (album != null) {
if (playlistEntity.value?.downloadState != album.downloadState) {
_playlistEntity.value = album
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion kotlinYtmusicScraper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {

android {
namespace = "com.maxrave.kotlinytmusicscraper"
compileSdk = 35
compileSdk = 34

defaultConfig {
minSdk = 26
Expand Down

0 comments on commit 8696328

Please sign in to comment.