Improve: Notification Icon

This commit is contained in:
LooKeR 2021-10-22 19:36:26 +05:30
parent fd7746f8b3
commit 424823dab2
2 changed files with 4 additions and 4 deletions

View File

@ -377,7 +377,7 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
.setSmallIcon(android.R.drawable.stat_sys_download) .setSmallIcon(android.R.drawable.stat_sys_download)
.setColor( .setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light) ContextThemeWrapper(this, R.style.Theme_Main_Light)
.getColorFromAttr(android.R.attr.colorAccent).defaultColor .getColorFromAttr(android.R.attr.colorPrimary).defaultColor
) )
.addAction( .addAction(
0, getString(R.string.cancel), PendingIntent.getService( 0, getString(R.string.cancel), PendingIntent.getService(

View File

@ -218,7 +218,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
.setSmallIcon(android.R.drawable.stat_sys_warning) .setSmallIcon(android.R.drawable.stat_sys_warning)
.setColor( .setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light) ContextThemeWrapper(this, R.style.Theme_Main_Light)
.getColorFromAttr(android.R.attr.colorAccent).defaultColor .getColorFromAttr(android.R.attr.colorPrimary).defaultColor
) )
.setContentTitle(getString(R.string.could_not_sync_FORMAT, repository.name)) .setContentTitle(getString(R.string.could_not_sync_FORMAT, repository.name))
.setContentText( .setContentText(
@ -244,7 +244,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
.setSmallIcon(R.drawable.ic_sync) .setSmallIcon(R.drawable.ic_sync)
.setColor( .setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light) ContextThemeWrapper(this, R.style.Theme_Main_Light)
.getColorFromAttr(android.R.attr.colorAccent).defaultColor .getColorFromAttr(android.R.attr.colorPrimary).defaultColor
) )
.addAction( .addAction(
0, getString(R.string.cancel), PendingIntent.getService( 0, getString(R.string.cancel), PendingIntent.getService(
@ -432,7 +432,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
) )
.setColor( .setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light) ContextThemeWrapper(this, R.style.Theme_Main_Light)
.getColorFromAttr(android.R.attr.colorAccent).defaultColor .getColorFromAttr(android.R.attr.colorPrimary).defaultColor
) )
.setContentIntent( .setContentIntent(
PendingIntent.getActivity( PendingIntent.getActivity(