File tree 2 files changed +6
-6
lines changed
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/main
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
*** For entries which are touching the Android Wear app's, start entry with `[WEAR]` too.
4
4
22.1
5
5
-----
6
-
6
+ - [*] The order count badge is now fully visible for counts higher than 99 [https://github.com/woocommerce/woocommerce-android/pull/13825]
7
7
8
8
22.0
9
9
-----
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class MainBottomNavigationView @JvmOverloads constructor(
76
76
ordersBadge = getOrCreateBadge(R .id.orders)
77
77
ordersBadge.isVisible = false
78
78
ordersBadge.backgroundColor = ContextCompat .getColor(context, R .color.color_primary)
79
- ordersBadge.maxCharacterCount = 3 // this includes the plus sign
79
+ ordersBadge.maxCharacterCount = MAX_CHARACTERS_IN_BADGE // this includes the plus sign
80
80
81
81
moreMenuBadge = getOrCreateBadge(R .id.moreMenu)
82
82
moreMenuBadge.isVisible = false
@@ -133,10 +133,6 @@ class MainBottomNavigationView @JvmOverloads constructor(
133
133
}
134
134
}
135
135
136
- fun clearOrderBadgeCount () {
137
- ordersBadge.clearNumber()
138
- }
139
-
140
136
override fun onNavigationItemSelected (item : MenuItem ): Boolean {
141
137
navController?.let { navController ->
142
138
val navSuccess = NavigationUI .onNavDestinationSelected(item, navController)
@@ -160,4 +156,8 @@ class MainBottomNavigationView @JvmOverloads constructor(
160
156
161
157
private fun NavDestination.matchDestination (@IdRes destId : Int ): Boolean =
162
158
hierarchy.any { it.id == destId }
159
+
160
+ companion object {
161
+ private const val MAX_CHARACTERS_IN_BADGE = 4
162
+ }
163
163
}
You can’t perform that action at this time.
0 commit comments