From 120f7453e5d032ba6bbfbfb4295018eeb89b3904 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 26 Apr 2018 21:21:00 +0200 Subject: [PATCH] use GIF to describe gifs instead of image --- src/main/java/eu/siacs/conversations/utils/UIHelper.java | 4 +++- src/main/res/values/strings.xml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index 1054a52ba..5add25ed1 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -435,11 +435,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 c108740c2..6afecb7be 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -704,4 +704,5 @@ Please wait… Conversations needs access to the microphone Search messages + GIF