library update notif text progress (#5098)

This commit is contained in:
Riztard Lanthorn 2021-05-18 04:20:58 +07:00 committed by GitHub
parent 5e37f72d74
commit cf4b870846
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,8 @@ class LibraryUpdateNotifier(private val context: Context) {
context.notificationManager.notify(
Notifications.ID_LIBRARY_PROGRESS,
progressNotificationBuilder
.setContentTitle(title)
.setContentTitle(title.chop(40))
.setContentText("($current/$total)")
.setProgress(total, current, false)
.build()
)