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 -> 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) {