From af33a57bf2c47c3b6a6b7840a5df77262e088f4c Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 17 May 2021 16:00:00 +0200 Subject: [PATCH] add description for text/plain --- src/main/java/eu/siacs/conversations/utils/UIHelper.java | 2 ++ src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index c8b9823ee..6dcf517a0 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -502,6 +502,8 @@ public class UIHelper { return context.getString(R.string.ebook); } else if (mime.equals("application/gpx+xml")) { return context.getString(R.string.gpx_track); + } else if (mime.equals("text/plain")) { + return context.getString(R.string.plain_text_document); } else { return mime; } diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 87c44a9fd..9f3ba84ac 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -965,4 +965,5 @@ No active accounts support this feature The backup has been started. You’ll get a notification once it has been completed. Unable to enable video. + Plain text document