mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 06:11:19 +00:00
Add paranoid safety checks to FolderActivity#onOptionsItemSelected (fixes #1190)
This commit is contained in:
parent
7cfe0855bb
commit
69913ebead
1 changed files with 2 additions and 0 deletions
|
@ -437,6 +437,8 @@ public class FolderActivity extends SyncthingActivity
|
|||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP &&
|
||||
mFolderUri != null &&
|
||||
mFolder != null &&
|
||||
mFolder.type != null &&
|
||||
mFolder.type.equals(Constants.FOLDER_TYPE_SEND_ONLY)) {
|
||||
/**
|
||||
* Normally, syncthing takes care of creating the ".stfolder" marker.
|
||||
|
|
Loading…
Reference in a new issue