Fix negative count on the unread announcements badge. (#2010)

Fixes #1994
main
Levi Bard 4 years ago committed by Alibek Omarov
parent bef916010d
commit 6e1c99513a
  1. 2
      app/src/main/java/com/keylesspalace/tusky/MainActivity.kt

@ -737,7 +737,7 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidInje
}
private fun updateAnnouncementsBadge() {
mainDrawer.updateBadge(DRAWER_ITEM_ANNOUNCEMENTS, StringHolder(if (unreadAnnouncementsCount == 0) null else unreadAnnouncementsCount.toString()))
mainDrawer.updateBadge(DRAWER_ITEM_ANNOUNCEMENTS, StringHolder(if (unreadAnnouncementsCount <= 0) null else unreadAnnouncementsCount.toString()))
}
private fun updateProfiles() {

Loading…
Cancel
Save