mirror of
https://github.com/mihonapp/mihon.git
synced 2025-02-17 05:12:49 +00:00
Set notification number for library updates to number of new updates (#1551)
This commit is contained in:
parent
16dc4d298d
commit
7c99ae1b3b
1 changed files with 1 additions and 0 deletions
|
@ -460,6 +460,7 @@ class LibraryUpdateService(
|
||||||
if (newUpdates.size > 1) {
|
if (newUpdates.size > 1) {
|
||||||
setContentText(getString(R.string.notification_new_chapters_text, newUpdates.size))
|
setContentText(getString(R.string.notification_new_chapters_text, newUpdates.size))
|
||||||
setStyle(NotificationCompat.BigTextStyle().bigText(newUpdates.joinToString("\n")))
|
setStyle(NotificationCompat.BigTextStyle().bigText(newUpdates.joinToString("\n")))
|
||||||
|
setNumber(newUpdates.size)
|
||||||
} else {
|
} else {
|
||||||
setContentText(newUpdates.first())
|
setContentText(newUpdates.first())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue