mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-14 03:35:12 +02:00
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:
@ -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(
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user