Update: styles.xml reformatted

Improve: No Overscroll Animation
Improve: Use new colorAccent Attr (styles.xml)
This commit is contained in:
LooKeR
2021-11-17 00:32:23 +05:30
parent 0fd8e3b8b7
commit b41715a2f0
7 changed files with 49 additions and 44 deletions

View File

@ -216,10 +216,7 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
.Builder(this, Common.NOTIFICATION_CHANNEL_DOWNLOADING)
.setAutoCancel(true)
.setSmallIcon(android.R.drawable.stat_sys_warning)
.setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light)
.getColorFromAttr(android.R.attr.colorAccent).defaultColor
)
.setColor(getColorFromAttr(R.attr.colorAccent).defaultColor)
.setContentIntent(
PendingIntent.getBroadcast(
this,
@ -282,7 +279,7 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
.Builder(this, Common.NOTIFICATION_CHANNEL_DOWNLOADING)
.setAutoCancel(true)
.setSmallIcon(android.R.drawable.stat_sys_download_done)
.setColor(getColorFromAttr(android.R.attr.colorAccent).defaultColor)
.setColor(getColorFromAttr(R.attr.colorAccent).defaultColor)
.setContentIntent(installIntent(task))
.setContentTitle(getString(R.string.downloaded_FORMAT, task.name))
.setContentText(getString(R.string.tap_to_install_DESC))