Changed from custom file picker implementation to SAF#2479
Conversation
|
@jesmrec @abelgardep I have made the changes. |
e2f8ca5 to
95f628d
Compare
95f628d to
1ee62d0
Compare
1ee62d0 to
1703354
Compare
|
@abelgardep @jesmrec Are there any more changes required in this? If not then I think this is ready for QA. |
| UploadFilesActivity.startUploadActivityForResult(getActivity(), ((FileActivity) getActivity()) | ||
| .getAccount(), FileDisplayActivity.REQUEST_CODE__SELECT_FILES_FROM_FILE_SYSTEM); | ||
| Intent action = new Intent(Intent.ACTION_GET_CONTENT); | ||
| action = action.setType("*/*").addCategory(Intent.CATEGORY_OPENABLE); |
There was a problem hiding this comment.
Could you please save */* in a constant?
Just a minor change and we can move it forward. |
|
@davigonz I have made the changes. |
| public boolean onTouch(View v, MotionEvent event) { | ||
| Intent action = new Intent(Intent.ACTION_GET_CONTENT); | ||
| action = action.setType("*/*").addCategory(Intent.CATEGORY_OPENABLE); | ||
| action = action.setType(getString(R.string.all_files_saf_filter)).addCategory(Intent.CATEGORY_OPENABLE); |
There was a problem hiding this comment.
I meant a constant at the top of this class, we usually include strings in owncloudApp/src/main/res/values/strings.xml when some translations are needed and this is not the case.
3374184 to
4eafb6c
Compare
|
@davigonz I have reverted the previous change and have done the new one. |
|
|
||
| private static String DIALOG_CREATE_FOLDER = "DIALOG_CREATE_FOLDER"; | ||
|
|
||
| private final String ALL_FILES_SAF_REGEX = "*/*"; |
|
Let's QA this |
|
Everything correct, more simplified logic and more versatility and integration with the other apps in the device. Approved on my side. @SD1998 could you rebase the branch to merge? |
|
@jesmrec Yeah surely. |
4eafb6c to
cc7e664
Compare
|
@jesmrec I have done the rebase. |
|
We have merged another PR, so we need here another rebase. Sorry for the inconvenience @SD1998 |
cc7e664 to
858a7d0
Compare
|
@jesmrec Not an issue. I have done the rebase. |
|
Thanks!! |
Fix to issue #2436.
Test plan:
https://github.com/owncloud/QA/blob/master/Mobile/Android/Release_2.11.0/2479-SAF_file_picker.md
QA: