From 1086df93c5bc78de51f3bb4beedc077845c31a38 Mon Sep 17 00:00:00 2001 From: LooKeR Date: Wed, 17 Nov 2021 20:45:05 +0530 Subject: [PATCH] Fix: Crash with Installation without root (Closes #119) --- .../kotlin/com/looker/droidify/service/DownloadService.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/looker/droidify/service/DownloadService.kt b/src/main/kotlin/com/looker/droidify/service/DownloadService.kt index 188ee291..fa9c2b21 100644 --- a/src/main/kotlin/com/looker/droidify/service/DownloadService.kt +++ b/src/main/kotlin/com/looker/droidify/service/DownloadService.kt @@ -279,7 +279,10 @@ class DownloadService : ConnectionService() { .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))