From 0a277608726668c9e4bd8bcdb257a120f1dd6c0f Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Fri, 1 Feb 2019 08:39:24 +0100 Subject: [PATCH] fix crash when selecting local folder Signed-off-by: tobiasKaminsky --- .../ui/dialog/SyncedFolderPreferencesDialogFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.java b/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.java index 2d5afb4df1..118f724017 100644 --- a/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.java +++ b/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.java @@ -55,6 +55,7 @@ import androidx.appcompat.widget.SwitchCompat; import androidx.fragment.app.DialogFragment; import static com.owncloud.android.datamodel.SyncedFolderDisplayItem.UNPERSISTED_ID; +import static com.owncloud.android.ui.activity.UploadFilesActivity.REQUEST_CODE_KEY; /** * Dialog to show the preferences/configuration of a synced folder allowing the user to change the different parameters. @@ -386,6 +387,7 @@ public class SyncedFolderPreferencesDialogFragment extends DialogFragment { public void onClick(View v) { Intent action = new Intent(getActivity(), UploadFilesActivity.class); action.putExtra(UploadFilesActivity.KEY_LOCAL_FOLDER_PICKER_MODE, true); + action.putExtra(REQUEST_CODE_KEY, REQUEST_CODE__SELECT_LOCAL_FOLDER); getActivity().startActivityForResult(action, REQUEST_CODE__SELECT_LOCAL_FOLDER); } });