Skip to content

Commit

Permalink
Fix: Crash with Installation without root (Closes #119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamlooker committed Nov 17, 2021
1 parent 20f7358 commit 1086df9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
.Builder(this, Common.NOTIFICATION_CHANNEL_DOWNLOADING)
.setAutoCancel(true)
.setSmallIcon(android.R.drawable.stat_sys_download_done)
.setColor(getColorFromAttr(R.attr.colorAccent).defaultColor)
.setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light)
.getColorFromAttr(android.R.attr.colorAccent).defaultColor
)
.setContentIntent(installIntent(task))
.setContentTitle(getString(R.string.downloaded_FORMAT, task.name))
.setContentText(getString(R.string.tap_to_install_DESC))
Expand Down

0 comments on commit 1086df9

Please sign in to comment.