Add badge to bottom bar Updates tab indicating how many unread chapter updates are available (#5620)

Co-authored-by: arkon <arkon@users.noreply.github.com>
This commit is contained in:
Hunter Nickel
2021-10-30 10:32:51 -06:00
committed by GitHub
parent 00817aacfe
commit 459759bfe5
7 changed files with 31 additions and 0 deletions
@@ -105,6 +105,9 @@ class UpdatesPresenter : BasePresenter<UpdatesController>() {
}
setDownloadedChapters(list)
chapters = list
//Set unread chapter count for bottom bar badge
preferences.libraryUnreadUpdatesCount().set(list.count { !it.read })
}
}