diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-01-18 11:57:17 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-01-18 11:57:17 +0100 |
commit | d8c9e12d456bcf824fe39a8730ef5c0fc5e947f6 (patch) | |
tree | 689b347b830ddc864dce6b0bd12ed7912293048c /src/main/java/eu/siacs/conversations/utils | |
parent | c17005218f454397535bcbddf09ecf75553fb2b8 (diff) | |
parent | 83c806a774a09d54a0ef84ec5400c348256ff03b (diff) |
Merge pull request #898 from SamWhited/unknown_filetype_string_fix
Fix string substitutions with unknown filetypes
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/UIHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index f468d9ae..86bc3f38 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -175,10 +175,10 @@ public class UIHelper { try { mime = URLConnection.guessContentTypeFromName(path); } catch (final StringIndexOutOfBoundsException ignored) { - return ""; + return context.getString(R.string.file); } if (mime == null) { - return ""; + return context.getString(R.string.file); } else if (mime.startsWith("audio/")) { return context.getString(R.string.audio); } else if(mime.startsWith("video/")) { |