diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 12c104fb3..bd067c946 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -24,7 +24,7 @@ android { applicationId = "eu.kanade.tachiyomi" minSdk = AndroidConfig.minSdk targetSdk = AndroidConfig.targetSdk - versionCode = 75 + versionCode = 76 versionName = "0.13.1" buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"") diff --git a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt index 83c0be1b5..3f48a8f23 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt @@ -256,6 +256,9 @@ object Migrations { preferences.extensionInstaller().set(PreferenceValues.ExtensionInstaller.LEGACY) } } + if (oldVersion < 76) { + BackupCreatorJob.setupTask(context) + } return true } diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt index 6f27c8bdc..489bc0ded 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt @@ -32,7 +32,7 @@ class BackupCreatorJob(private val context: Context, workerParams: WorkerParamet val uri = inputData.getString(LOCATION_URI_KEY)?.let { Uri.parse(it) } ?: preferences.backupsDirectory().get().toUri() val flags = inputData.getInt(BACKUP_FLAGS_KEY, BackupConst.BACKUP_ALL) - val isAutoBackup = inputData.getBoolean(IS_AUTO_BACKUP_KEY, false) + val isAutoBackup = inputData.getBoolean(IS_AUTO_BACKUP_KEY, true) context.notificationManager.notify(Notifications.ID_BACKUP_PROGRESS, notifier.showBackupProgress().build()) return try {