diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt
index 74ac080cf3..f6631c31e9 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestoreService.kt
@@ -30,6 +30,7 @@ import eu.kanade.tachiyomi.data.notification.NotificationReceiver
import eu.kanade.tachiyomi.data.notification.Notifications
import eu.kanade.tachiyomi.data.track.TrackManager
import eu.kanade.tachiyomi.source.SourceNotFoundException
+import eu.kanade.tachiyomi.util.chop
import eu.kanade.tachiyomi.util.getUriCompat
import eu.kanade.tachiyomi.util.isServiceRunning
import eu.kanade.tachiyomi.util.notificationManager
@@ -116,7 +117,7 @@ class BackupRestoreService : Service() {
startForeground(Notifications.ID_RESTORE_PROGRESS, progressNotification.build())
wakeLock = (getSystemService(Context.POWER_SERVICE) as PowerManager).newWakeLock(
PowerManager.PARTIAL_WAKE_LOCK, "BackupRestoreService:WakeLock")
- wakeLock.acquire(10 * 60 * 1000L /*10 minutes*/)
+ wakeLock.acquire()
}
/**
@@ -363,7 +364,9 @@ class BackupRestoreService : Service() {
*/
private fun showProgressNotification(current: Int, total: Int, title: String) {
notificationManager.notify(Notifications.ID_RESTORE_PROGRESS, progressNotification
- .setContentTitle(title)
+ .setContentTitle(title.chop(30))
+ .setContentText(getString(R.string.backup_restoring_progress, restoreProgress,
+ totalAmount))
.setProgress(total, current, false)
.build())
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index fffb7d7d9a..ae56c91bdc 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -189,7 +189,7 @@
Always
Never
After %1$s minutes
- Search (title, tags, source)
+ Search title, tags, source
All
@@ -314,6 +314,7 @@
File saved at %1$s
What do you want to backup?
Restoring backup
+ Restoring (%1$d/%2$d)
Creating backup
Sources missing: %1$d
%1$d manga are now licensed and could not be restored