mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
fix crash when selecting local folder
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
8966afd43a
commit
0a27760872
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,7 @@ import androidx.appcompat.widget.SwitchCompat;
|
||||||
import androidx.fragment.app.DialogFragment;
|
import androidx.fragment.app.DialogFragment;
|
||||||
|
|
||||||
import static com.owncloud.android.datamodel.SyncedFolderDisplayItem.UNPERSISTED_ID;
|
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.
|
* 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) {
|
public void onClick(View v) {
|
||||||
Intent action = new Intent(getActivity(), UploadFilesActivity.class);
|
Intent action = new Intent(getActivity(), UploadFilesActivity.class);
|
||||||
action.putExtra(UploadFilesActivity.KEY_LOCAL_FOLDER_PICKER_MODE, true);
|
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);
|
getActivity().startActivityForResult(action, REQUEST_CODE__SELECT_LOCAL_FOLDER);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue