use GIF to describe gifs instead of image

This commit is contained in:
Daniel Gultsch 2018-04-26 21:21:00 +02:00
parent 3d243866a4
commit 120f7453e5
2 changed files with 4 additions and 1 deletions

View File

@ -435,11 +435,13 @@ public class UIHelper {
return context.getString(R.string.audio); return context.getString(R.string.audio);
} else if (mime.startsWith("video/")) { } else if (mime.startsWith("video/")) {
return context.getString(R.string.video); return context.getString(R.string.video);
} else if (mime.equals("image/gif")) {
return context.getString(R.string.gif);
} else if (mime.startsWith("image/")) { } else if (mime.startsWith("image/")) {
return context.getString(R.string.image); return context.getString(R.string.image);
} else if (mime.contains("pdf")) { } else if (mime.contains("pdf")) {
return context.getString(R.string.pdf_document); return context.getString(R.string.pdf_document);
} else if (mime.contains("application/vnd.android.package-archive")) { } else if (mime.equals("application/vnd.android.package-archive")) {
return context.getString(R.string.apk); return context.getString(R.string.apk);
} else if (mime.contains("vcard")) { } else if (mime.contains("vcard")) {
return context.getString(R.string.vcard); return context.getString(R.string.vcard);

View File

@ -704,4 +704,5 @@
<string name="please_wait">Please wait…</string> <string name="please_wait">Please wait…</string>
<string name="no_microphone_permission">Conversations needs access to the microphone</string> <string name="no_microphone_permission">Conversations needs access to the microphone</string>
<string name="search_messages">Search messages</string> <string name="search_messages">Search messages</string>
<string name="gif">GIF</string>
</resources> </resources>