mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 12:21:15 +00:00
Fallback to built-in path selector (#1272)
This commit is contained in:
parent
ab91c498ab
commit
94c94b4216
1 changed files with 7 additions and 1 deletions
|
@ -235,7 +235,13 @@ public class FolderActivity extends SyncthingActivity
|
|||
}
|
||||
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
|
||||
intent.putExtra("android.content.extra.SHOW_ADVANCED", true);
|
||||
startActivityForResult(intent, CHOOSE_FOLDER_REQUEST);
|
||||
try {
|
||||
startActivityForResult(intent, CHOOSE_FOLDER_REQUEST);
|
||||
} catch (android.content.ActivityNotFoundException e) {
|
||||
Log.e(TAG, "onPathViewClick exception, falling back to built-in FolderPickerActivity.", e);
|
||||
startActivityForResult(FolderPickerActivity.createIntent(this, mFolder.path, null),
|
||||
FolderPickerActivity.DIRECTORY_REQUEST_CODE);
|
||||
}
|
||||
}
|
||||
|
||||
private void editIgnores() {
|
||||
|
|
Loading…
Reference in a new issue