Current behaviour / Context:
When browsing through folder structure, a request per item is sent:
/remote.php/dav/files/<username>/<filename>?x=336&y=336&c=&preview=1
response returns the thumbnail preview if exists, otherwise returns 404
Usually, servers return thumbnails for images (not every format) and txt files, but it could change.
Problem:
In grid view, images use to show the thumbnail, but the name. But, not every image format is handled by the server. So, we have some items without thumbnail nor name, weird for the user:

Solution (please, suggest other if this one is not OK):
In grid view, if image is not previewable (request returns 404), show the file name as any other kind of file.
Also, change the thumbnail for another more descriptive one (anything in Android material??)
TASKS
PR
Current behaviour / Context:
When browsing through folder structure, a request per item is sent:
/remote.php/dav/files/<username>/<filename>?x=336&y=336&c=&preview=1response returns the thumbnail preview if exists, otherwise returns
404Usually, servers return thumbnails for images (not every format) and txt files, but it could change.
Problem:
In grid view, images use to show the thumbnail, but the name. But, not every image format is handled by the server. So, we have some items without thumbnail nor name, weird for the user:
Solution (please, suggest other if this one is not OK):
In grid view, if image is not previewable (request returns
404), show the file name as any other kind of file.Also, change the thumbnail for another more descriptive one (anything in Android material??)
TASKS
PR