From 2c2a5314d4f1cd1b0d1f128beefe7229891dad85 Mon Sep 17 00:00:00 2001 From: m2049r Date: Wed, 19 May 2021 22:20:47 +0200 Subject: [PATCH] fix migration of devices with permission timeouts --- app/build.gradle | 4 ++-- .../java/com/m2049r/xmrwallet/util/LegacyStorageHelper.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index df633e01..138c42fc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.m2049r.xmrwallet" minSdkVersion 21 targetSdkVersion 30 - versionCode 1006 - versionName "2.0.6 'Puginarug'" + versionCode 1007 + versionName "2.0.7 'Puginarug'" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { diff --git a/app/src/main/java/com/m2049r/xmrwallet/util/LegacyStorageHelper.java b/app/src/main/java/com/m2049r/xmrwallet/util/LegacyStorageHelper.java index 68a1f6b6..20ea61cc 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/util/LegacyStorageHelper.java +++ b/app/src/main/java/com/m2049r/xmrwallet/util/LegacyStorageHelper.java @@ -31,8 +31,7 @@ public class LegacyStorageHelper { try { if (isStorageMigrated(context)) return; if (!hasReadPermission(context)) { - // nothing to migrate, so don't try again - setStorageMigrated(context); + // can't migrate - don't remember this, as the user may turn on permissions later return; } final File oldRoot = getWalletRoot();