1
0
Fork 0

Pass color resource for what's new menu item by id

master
Unpublished 2019-09-11 12:00:28 +02:00 committed by Emily Kager
parent 956f4f0534
commit 065ce13999
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@
package org.mozilla.fenix.home
import android.content.Context
import androidx.core.content.ContextCompat
import mozilla.components.browser.menu.BrowserMenuBuilder
import mozilla.components.browser.menu.item.BrowserMenuDivider
import mozilla.components.browser.menu.item.BrowserMenuHighlightableItem
@ -60,7 +59,7 @@ class HomeMenu(
highlight = BrowserMenuHighlightableItem.Highlight(
startImageResource = R.drawable.ic_whats_new_notification,
backgroundResource = ThemeManager.resolveAttribute(R.attr.selectableItemBackground, context),
colorResource = ContextCompat.getColor(context, R.color.whats_new_notification_color)
colorResource = R.color.whats_new_notification_color
),
isHighlighted = { WhatsNew.shouldHighlightWhatsNew(context) }
) {