From: Andy Scherzinger Date: Tue, 15 Sep 2015 16:02:34 +0000 (+0200) Subject: adapting web's way of choosing icons X-Git-Tag: oc-android-1.8~7^2~2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/3ff4d6df0ff40a63fd9c12d5f35d4bc7a2be6560?ds=inline;hp=-c adapting web's way of choosing icons --- 3ff4d6df0ff40a63fd9c12d5f35d4bc7a2be6560 diff --git a/res/drawable-xxhdpi/file_text.png b/res/drawable-xxhdpi/file_text.png new file mode 100644 index 00000000..6007b378 Binary files /dev/null and b/res/drawable-xxhdpi/file_text.png differ diff --git a/src/com/owncloud/android/utils/MimetypeIconUtil.java b/src/com/owncloud/android/utils/MimetypeIconUtil.java index 2c7f6ee0..bd8c5d91 100644 --- a/src/com/owncloud/android/utils/MimetypeIconUtil.java +++ b/src/com/owncloud/android/utils/MimetypeIconUtil.java @@ -159,7 +159,7 @@ public class MimetypeIconUtil { */ private static void populateMimeTypeIconMapping() { MIMETYPE_TO_ICON_MAPPING.put("application/coreldraw", R.drawable.file_image); - MIMETYPE_TO_ICON_MAPPING.put("application/epub+zip", R.drawable.file_doc); + MIMETYPE_TO_ICON_MAPPING.put("application/epub+zip", R.drawable.file_text); MIMETYPE_TO_ICON_MAPPING.put("application/font-sfnt", R.drawable.file_image); MIMETYPE_TO_ICON_MAPPING.put("application/font-woff", R.drawable.file_image); MIMETYPE_TO_ICON_MAPPING.put("application/illustrator", R.drawable.file_image); @@ -173,7 +173,7 @@ public class MimetypeIconUtil { MIMETYPE_TO_ICON_MAPPING.put("application/postscript", R.drawable.file_image); MIMETYPE_TO_ICON_MAPPING.put("application/pdf", R.drawable.file_pdf); MIMETYPE_TO_ICON_MAPPING.put("application/rss+xml", R.drawable.file_code); - MIMETYPE_TO_ICON_MAPPING.put("application/rtf", R.drawable.file_doc); + MIMETYPE_TO_ICON_MAPPING.put("application/rtf", R.drawable.file); MIMETYPE_TO_ICON_MAPPING.put("application/vnd.android.package-archive", R.drawable.file_zip); MIMETYPE_TO_ICON_MAPPING.put("application/vnd.ms-excel", R.drawable.file_xls); MIMETYPE_TO_ICON_MAPPING.put("application/vnd.ms-excel.addin.macroEnabled.12", R.drawable.file_xls); @@ -205,7 +205,7 @@ public class MimetypeIconUtil { MIMETYPE_TO_ICON_MAPPING.put("application/vnd.openxmlformats-officedocument.wordprocessingml.template", R.drawable.file_doc); MIMETYPE_TO_ICON_MAPPING.put("application/x-7z-compressed", R.drawable.file_zip); MIMETYPE_TO_ICON_MAPPING.put("application/x-bin", R.drawable.file_application); - MIMETYPE_TO_ICON_MAPPING.put("application/x-cbr", R.drawable.file_doc); + MIMETYPE_TO_ICON_MAPPING.put("application/x-cbr", R.drawable.file_text); MIMETYPE_TO_ICON_MAPPING.put("application/x-compressed", R.drawable.file_zip); MIMETYPE_TO_ICON_MAPPING.put("application/x-dcraw", R.drawable.file_image); MIMETYPE_TO_ICON_MAPPING.put("application/x-deb", R.drawable.file_zip); @@ -223,8 +223,8 @@ public class MimetypeIconUtil { MIMETYPE_TO_ICON_MAPPING.put("application/x-rar-compressed", R.drawable.file_zip); MIMETYPE_TO_ICON_MAPPING.put("application/x-shockwave-flash", R.drawable.file_application); MIMETYPE_TO_ICON_MAPPING.put("application/x-tar", R.drawable.file_zip); - MIMETYPE_TO_ICON_MAPPING.put("application/x-tex", R.drawable.file_doc); - MIMETYPE_TO_ICON_MAPPING.put("application/xml", R.drawable.file_code); + MIMETYPE_TO_ICON_MAPPING.put("application/x-tex", R.drawable.file_text); + MIMETYPE_TO_ICON_MAPPING.put("application/xml", R.drawable.file_text); MIMETYPE_TO_ICON_MAPPING.put("application/yaml", R.drawable.file_code); MIMETYPE_TO_ICON_MAPPING.put("application/zip", R.drawable.file_zip); MIMETYPE_TO_ICON_MAPPING.put("database", R.drawable.file); @@ -253,7 +253,7 @@ public class MimetypeIconUtil { MAINMIMETYPE_TO_ICON_MAPPING.put("database", R.drawable.file); MAINMIMETYPE_TO_ICON_MAPPING.put("httpd", R.drawable.file_zip); MAINMIMETYPE_TO_ICON_MAPPING.put("image", R.drawable.file_image); - MAINMIMETYPE_TO_ICON_MAPPING.put("text", R.drawable.file_doc); + MAINMIMETYPE_TO_ICON_MAPPING.put("text", R.drawable.file_text); MAINMIMETYPE_TO_ICON_MAPPING.put("video", R.drawable.file_movie); MAINMIMETYPE_TO_ICON_MAPPING.put("web", R.drawable.file_code); }