add grid view option when choosing a file from within the app#301
add grid view option when choosing a file from within the app#301tobiasKaminsky merged 3 commits intonextcloud:masterfrom
Conversation
|
Hi @apicellaj thank you very much for your PR and welcome to Nextcloud. I did a small test and found two (minor) issues (for code review please see code comments):
|
| R.drawable.ic_view_module)); | ||
| mFileListFragment.switchToListView(); | ||
| } else { | ||
| item.setTitle(getApplicationContext().getString(R.string.action_switch_list_view)); |
There was a problem hiding this comment.
getApplicationContext() should be removed
|
Thanks for the feedback and the warm welcome. The two issues seem to be resolved but let me know if you would like anything changed. |
|
@apicellaj thanks for the code changes! 👍 @tobiasKaminsky please have a look, now the grid view for local files would look like this: --> The local files grid view does distinguish between grid-item and grid-image (image/video) which it can't at the moment since we would have to dynamically detect the mime type. That is possible but we do not have a implementation for that. So I would say it is out of scope and rather open another issue for this matter and declare this one feature complete. What do you think? |
|
Slight update, with some customization of the code: @tobiasKaminsky I would apply these changes after we merged this PR since I did some refactorings in the background for MimeType utils and ViewType etc. etc. |
|
@tobiasKaminsky what do you think? I'd say merge + another PR later on. 👍 |
|
@apicellaj thank you very much for your contribution! |
|
Thank you very much for your contribution @apicellaj 🎉 It will be included in the next stable-feature release 🚀 |
|
Great! Thanks again for your feedback |




Implemented a grid view option for choosing a file from the app as mentioned in #185