From 5f64a8f07123eb7bcb96358d660e047013a3ba2b Mon Sep 17 00:00:00 2001 From: LooKeR Date: Sun, 21 Nov 2021 14:11:26 +0530 Subject: [PATCH] Fix: App Crash on Download --- .../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 fa9c2b21..14bf36c4 100644 --- a/src/main/kotlin/com/looker/droidify/service/DownloadService.kt +++ b/src/main/kotlin/com/looker/droidify/service/DownloadService.kt @@ -216,7 +216,10 @@ class DownloadService : ConnectionService() { .Builder(this, Common.NOTIFICATION_CHANNEL_DOWNLOADING) .setAutoCancel(true) .setSmallIcon(android.R.drawable.stat_sys_warning) - .setColor(getColorFromAttr(R.attr.colorAccent).defaultColor) + .setColor( + ContextThemeWrapper(this, R.style.Theme_Main_Light) + .getColorFromAttr(R.attr.colorAccent).defaultColor + ) .setContentIntent( PendingIntent.getBroadcast( this,