1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 14:21:16 +00:00

Fallback to built-in path selector (#1272)

This commit is contained in:
Catfriend1 2019-02-12 08:31:17 +01:00 committed by Audrius Butkevicius
parent ab91c498ab
commit 94c94b4216

View file

@ -235,7 +235,13 @@ public class FolderActivity extends SyncthingActivity
}
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
intent.putExtra("android.content.extra.SHOW_ADVANCED", true);
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() {