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

(cherry picked from commit 653b7ffcd0)

# Conflicts:
#	app/src/main/res/drawable/ic_tachi.xml
This commit is contained in:
Soitora
2021-06-09 23:16:09 +02:00
committed by Jobobby04
parent 0bdddb365f
commit fc141cb92a
14 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -112,7 +112,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(
@@ -204,7 +204,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,
@@ -70,7 +70,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
}