Commit 9e472172 authored by Mygod's avatar Mygod

Add missing notification title update

parent 940e4e30
......@@ -90,7 +90,7 @@ class SubscriptionService : Service() {
setShowsUserInterface(false)
}.build())
setCategory(NotificationCompat.CATEGORY_PROGRESS)
setContentTitle(getString(R.string.service_subscription_working))
setContentTitle(getString(R.string.service_subscription_working, 0, urls.size()))
setOngoing(true)
setProgress(urls.size(), 0, false)
setSmallIcon(R.drawable.ic_file_cloud_download)
......@@ -148,6 +148,7 @@ class SubscriptionService : Service() {
withContext(Dispatchers.Main) {
counter += 1
Core.notification.notify(NOTIFICATION_ID, notification.apply {
setContentTitle(getString(R.string.service_subscription_working, counter, max))
setProgress(max, counter, false)
}.build())
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment