aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/utils/UIHelper.java4
-rw-r--r--src/main/res/values/strings.xml1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/UIHelper.java b/src/main/java/de/pixart/messenger/utils/UIHelper.java
index 290a5829d..dc15d41e4 100644
--- a/src/main/java/de/pixart/messenger/utils/UIHelper.java
+++ b/src/main/java/de/pixart/messenger/utils/UIHelper.java
@@ -431,11 +431,13 @@ public class UIHelper {
return context.getString(R.string.audio);
} else if (mime.startsWith("video/")) {
return context.getString(R.string.video);
+ } else if (mime.equals("image/gif")) {
+ return context.getString(R.string.gif);
} else if (mime.startsWith("image/")) {
return context.getString(R.string.image);
} else if (mime.contains("pdf")) {
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);
} else if (mime.contains("vcard")) {
return context.getString(R.string.vcard);
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 515e440c1..85ecacdf8 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -783,4 +783,5 @@
<string name="no_microphone_permission">Conversations needs access to the microphone</string>
<string name="title_activity_search">Search</string>
<string name="search_messages">Search messages</string>
+ <string name="gif">GIF</string>
</resources>