update workflow, add check #379

This commit is contained in:
afischerdev 2021-12-27 20:02:13 +01:00
parent f1b21fc270
commit f5c3103dcf
4 changed files with 28 additions and 3 deletions

View file

@ -596,7 +596,8 @@ public class BRouterActivity extends Activity implements ActivityCompat.OnReques
}
}
if (checkExternalStorageWritable()) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q
&& checkExternalStorageWritable()) {
res.add(Environment.getExternalStorageDirectory());
}

View file

@ -204,7 +204,9 @@ public class BRouterView extends View {
// new init is done move old files
if (waitingForMigration) {
moveFolders(oldMigrationPath, basedir + "/brouter");
Log.d("BR", "path " + oldMigrationPath + " " + basedir);
if (!oldMigrationPath.equals(basedir + "/brouter"))
moveFolders(oldMigrationPath, basedir + "/brouter");
waitingForMigration = false;
}