mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 22:31:16 +00:00
Fixed crash in folder picker on pre-Kitkat devices (fixes #772)
This commit is contained in:
parent
ad0d4272c7
commit
1420ccc1be
1 changed files with 3 additions and 1 deletions
|
@ -104,7 +104,9 @@ public class FolderPickerActivity extends SyncthingActivity
|
|||
roots.add(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES));
|
||||
roots.add(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS));
|
||||
roots.add(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM));
|
||||
roots.add(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS));
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
||||
roots.add(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS));
|
||||
}
|
||||
|
||||
// Add paths that might not be accessible to Syncthing.
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
|
|
Loading…
Reference in a new issue