Fix black icon for small notifications on EMUI (#5350)

* Set notification icon fillColor to Android white

Closes #5340

* Remove '_black' suffix from the glasses icon drawable
This commit is contained in:
Soitora
2021-06-09 23:16:09 +02:00
committed by GitHub
parent 8791b72cb1
commit 653b7ffcd0
14 changed files with 15 additions and 15 deletions

View File

@ -81,7 +81,7 @@ open class App : Application(), LifecycleObserver, ImageLoaderFactory {
val notification = notification(Notifications.CHANNEL_INCOGNITO_MODE) {
setContentTitle(getString(R.string.pref_incognito_mode))
setContentText(getString(R.string.notification_incognito_text))
setSmallIcon(R.drawable.ic_glasses_black_24dp)
setSmallIcon(R.drawable.ic_glasses_24dp)
setOngoing(true)
val pendingIntent = PendingIntent.getBroadcast(

View File

@ -203,7 +203,7 @@ class LibraryUpdateNotifier(private val context: Context) {
// Mark chapters as read action
addAction(
R.drawable.ic_glasses_black_24dp,
R.drawable.ic_glasses_24dp,
context.getString(R.string.action_mark_as_read),
NotificationReceiver.markAsReadPendingBroadcast(
context,

View File

@ -67,7 +67,7 @@ class MoreController :
key = Keys.incognitoMode
summaryRes = R.string.pref_incognito_mode_summary
titleRes = R.string.pref_incognito_mode
iconRes = R.drawable.ic_glasses_black_24dp
iconRes = R.drawable.ic_glasses_24dp
iconTint = tintColor
defaultValue = false
}