Fix backups always loading the full backup restore mode, even when legacy restore was used

This commit is contained in:
Jobobby04 2020-10-13 23:29:21 -04:00
parent d15a473ed1
commit 413c88d99f

View File

@ -45,7 +45,7 @@ class BackupRestoreService : Service() {
if (!isRunning(context)) {
val intent = Intent(context, BackupRestoreService::class.java).apply {
putExtra(BackupConst.EXTRA_URI, uri)
putExtra(BackupConst.EXTRA_TYPE, mode)
putExtra(BackupConst.EXTRA_MODE, mode)
online?.let { putExtra(BackupConst.EXTRA_TYPE, it) }
}
ContextCompat.startForegroundService(context, intent)