1
0
Fork 0
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:
Catfriend1 2018-07-25 14:02:02 +02:00
parent 7cfe0855bb
commit 69913ebead

View file

@ -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.