Merge pull request #3541 from nextcloud/crashOnLocalFolder

Fix crash when selecting local folder
This commit is contained in:
Andy Scherzinger 2019-02-01 10:17:25 +01:00 committed by GitHub
commit 492d70345e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
});