Skip to content

Commit

Permalink
fixed naming issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
st235 committed Apr 3, 2021
1 parent b2edf3b commit 10eb471
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ internal class MenuItemFactory(
@Px private var backgroundCornerRadius: Float,
@FloatRange(from = 0.0, to = 1.0) private var backgroundOpacity: Float,
@ColorInt private var itemInactiveColor: Int,
@ColorInt private var notificationBadgeColor: Int,
@ColorInt private var notificationBadgeTextColor: Int
@ColorInt private var globalNotificationBadgeColor: Int,
@ColorInt private var globalNotificationBadgeTextColor: Int
) {

fun build(
Expand Down Expand Up @@ -47,8 +47,8 @@ internal class MenuItemFactory(

setIcon(menuItemDescriptor.iconId, backgroundColorStateList)
setText(menuItemDescriptor.text, backgroundColorStateList)
notificationBadgeBackgroundColor = menuItemDescriptor.badgeBackgroundColor ?: notificationBadgeColor
notificationBadgeTextColor = menuItemDescriptor.badgeTextColor ?: notificationBadgeTextColor
notificationBadgeBackgroundColor = menuItemDescriptor.badgeBackgroundColor ?: globalNotificationBadgeColor
notificationBadgeTextColor = menuItemDescriptor.badgeTextColor ?: globalNotificationBadgeTextColor

background = createHighlightedMenuShape(menuItemDescriptor)
setOnClickListener {
Expand Down

0 comments on commit 10eb471

Please sign in to comment.