mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Fix. Some icons are not correct. Showed default file icon when there is not mimetype
This commit is contained in:
parent
6caad2be05
commit
fa159e4891
1 changed files with 6 additions and 3 deletions
|
@ -164,7 +164,10 @@ public class DisplayUtils {
|
||||||
*/
|
*/
|
||||||
public static int getResourceId(String mimetype, String filename) {
|
public static int getResourceId(String mimetype, String filename) {
|
||||||
|
|
||||||
if (mimetype == null || "DIR".equals(mimetype)) {
|
if (mimetype == null) {
|
||||||
|
return R.drawable.file;
|
||||||
|
|
||||||
|
} else if ("DIR".equals(mimetype)) {
|
||||||
return R.drawable.ic_menu_archive;
|
return R.drawable.ic_menu_archive;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue