From faa5e81108639e1af0f69e3094c9a72b42a050e7 Mon Sep 17 00:00:00 2001 From: Zion Huang Date: Sun, 13 Feb 2022 19:31:16 +0800 Subject: [PATCH 1/2] Remove setNotificationVisibility to fix download malfunctioning --- .../main/java/com/zionhuang/music/repos/SongRepository.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/zionhuang/music/repos/SongRepository.kt b/app/src/main/java/com/zionhuang/music/repos/SongRepository.kt index cc60fbc83..cebf28b48 100644 --- a/app/src/main/java/com/zionhuang/music/repos/SongRepository.kt +++ b/app/src/main/java/com/zionhuang/music/repos/SongRepository.kt @@ -1,7 +1,6 @@ package com.zionhuang.music.repos import android.app.DownloadManager -import android.app.DownloadManager.Request.VISIBILITY_HIDDEN import android.util.Log import androidx.core.content.getSystemService import androidx.core.net.toUri @@ -15,7 +14,9 @@ import com.zionhuang.music.db.daos.DownloadDao import com.zionhuang.music.db.daos.PlaylistDao import com.zionhuang.music.db.daos.SongDao import com.zionhuang.music.db.entities.* -import com.zionhuang.music.extensions.* +import com.zionhuang.music.extensions.TAG +import com.zionhuang.music.extensions.div +import com.zionhuang.music.extensions.getApplication import com.zionhuang.music.models.ListWrapper import com.zionhuang.music.models.base.ISortInfo import com.zionhuang.music.repos.base.LocalRepository @@ -90,7 +91,6 @@ object SongRepository : LocalRepository { .setTitle(song.title) .setDestinationUri(getSongFile(id).toUri()) .setVisibleInDownloadsUi(false) - .setNotificationVisibility(VISIBILITY_HIDDEN) val did = downloadManager.enqueue(req) addDownload(DownloadEntity(did, id)) } catch (e: Exception) { From cf6e0df94dd407cf0c73aead59ef8475e19bce3a Mon Sep 17 00:00:00 2001 From: Zion Huang Date: Sun, 13 Feb 2022 20:04:31 +0800 Subject: [PATCH 2/2] Hotfix: release 0.1.3-beta --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index aa3b0f03c..4562f702e 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "com.zionhuang.music" minSdkVersion 26 targetSdkVersion 31 - versionCode 3 - versionName "0.1.2-beta" + versionCode 4 + versionName "0.1.3-beta" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } applicationVariants.all { variant ->