diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-30 23:52:43 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-30 23:52:43 +0200 |
commit | fb6137a3ab8e5b2bcd41b01229ebd76b4020cbc9 (patch) | |
tree | 78d836b4379f84daf9a512d4ea10a16c76e45a77 /src/main | |
parent | 30442e84e1a845f4aed59d6c787c2f791b00ecdd (diff) |
use GIF to describe gifs instead of image
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/UIHelper.java | 4 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 1 |
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> |