Backup pref related fixes.

This commit is contained in:
Anton Chekulaev
2020-09-16 19:16:47 +10:00
parent e0892853a7
commit bf666f0296
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ object BackupUtil {
@Throws(IOException::class)
fun enableBackups(context: Context, password: String) {
val backupDir = getBackupDirUri(context)
if (backupDir == null || validateDirAccess(context, backupDir)) {
if (backupDir == null || !validateDirAccess(context, backupDir)) {
throw IOException("Backup dir is not set or invalid.")
}