update workflow, add check #379
This commit is contained in:
parent
f1b21fc270
commit
f5c3103dcf
4 changed files with 28 additions and 3 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue