Merge remote-tracking branch 'origin/release' into dev
# Conflicts: # app/src/main/java/com/gh/gamecenter/receiver/InstallReceiver.java # app/src/main/java/com/gh/gamecenter/setting/VideoSettingFragment.kt # app/src/main/java/com/halo/assistant/HaloApp.java # dependencies.gradle
This commit is contained in:
@ -22,7 +22,6 @@ import com.gh.gamecenter.core.utils.SpeedUtils
|
||||
import com.halo.assistant.HaloApp
|
||||
import com.lightgame.download.DownloadEntity
|
||||
import com.lightgame.download.DownloadStatus
|
||||
import com.walkud.rom.checker.RomIdentifier
|
||||
|
||||
object DownloadNotificationHelper {
|
||||
|
||||
@ -37,7 +36,6 @@ object DownloadNotificationHelper {
|
||||
const val ACTION_VDOWNLOAD = "com.gh.gamecenter.VDOWNLOAD"
|
||||
|
||||
private val mNotifyMap: MutableMap<String, Long> = mutableMapOf()
|
||||
private val mShouldUseAlternativeNotificationIcon by lazy { RomIdentifier.getRom().versionName == null }
|
||||
|
||||
private fun getNotificationManager(): NotificationManager {
|
||||
return HaloApp.getInstance().application.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
@ -197,6 +195,6 @@ object DownloadNotificationHelper {
|
||||
}
|
||||
|
||||
private fun getNotificationIcon(): Int {
|
||||
return if (mShouldUseAlternativeNotificationIcon) R.drawable.ic_download_notification else R.mipmap.logo
|
||||
return R.mipmap.logo
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user