mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 02:52:17 +00:00
Backup pref related fixes.
This commit is contained in:
@@ -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.")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user