mirror of https://github.com/m2049r/xmrwallet.git
fix migration of devices with permission timeouts
This commit is contained in:
parent
669516c60b
commit
2c2a5314d4
|
@ -8,8 +8,8 @@ android {
|
||||||
applicationId "com.m2049r.xmrwallet"
|
applicationId "com.m2049r.xmrwallet"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 1006
|
versionCode 1007
|
||||||
versionName "2.0.6 'Puginarug'"
|
versionName "2.0.7 'Puginarug'"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
|
|
|
@ -31,8 +31,7 @@ public class LegacyStorageHelper {
|
||||||
try {
|
try {
|
||||||
if (isStorageMigrated(context)) return;
|
if (isStorageMigrated(context)) return;
|
||||||
if (!hasReadPermission(context)) {
|
if (!hasReadPermission(context)) {
|
||||||
// nothing to migrate, so don't try again
|
// can't migrate - don't remember this, as the user may turn on permissions later
|
||||||
setStorageMigrated(context);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final File oldRoot = getWalletRoot();
|
final File oldRoot = getWalletRoot();
|
||||||
|
|
Loading…
Reference in New Issue