Changing extensions badge in sheet to a dot

This commit is contained in:
Jays2Kings 2021-03-26 13:03:58 -04:00
parent 5e2cad868d
commit 29c2ffb604

View File

@ -150,7 +150,7 @@ class ExtensionBottomSheet @JvmOverloads constructor(context: Context, attrs: At
fun updateExtTitle() { fun updateExtTitle() {
val extCount = presenter.getExtensionUpdateCount() val extCount = presenter.getExtensionUpdateCount()
if (extCount > 0) tabs.getTabAt(0)?.orCreateBadge?.number = extCount if (extCount > 0) tabs.getTabAt(0)?.orCreateBadge
else tabs.getTabAt(0)?.removeBadge() else tabs.getTabAt(0)?.removeBadge()
} }