allow restoring backups (can't create yet)

This commit is contained in:
TrianguloY 2024-03-23 10:39:06 +01:00
parent 6f3e4bd03b
commit ba0a4a5683

View file

@ -24,7 +24,6 @@ SOFTWARE.
package net.pierrox.lightning_launcher.activities; package net.pierrox.lightning_launcher.activities;
import android.Manifest;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.Dialog; import android.app.Dialog;
@ -128,10 +127,11 @@ public class BackupRestore extends ResourceWrapperActivity implements View.OnCli
loadArchivesList(); loadArchivesList();
checkPermissions( // WORKAROUND to allow restoring (still no backup)
new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, // checkPermissions(
new int[]{R.string.pr_r1, R.string.pr_r2}, // new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE},
REQUEST_PERMISSION_BASE); // new int[]{R.string.pr_r1, R.string.pr_r2},
// REQUEST_PERMISSION_BASE);
} }
@Override @Override