aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/utils/MimeUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils/MimeUtils.java')
-rw-r--r--src/main/java/de/pixart/messenger/utils/MimeUtils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/MimeUtils.java b/src/main/java/de/pixart/messenger/utils/MimeUtils.java
index d2ce21b72..bfcf71c6e 100644
--- a/src/main/java/de/pixart/messenger/utils/MimeUtils.java
+++ b/src/main/java/de/pixart/messenger/utils/MimeUtils.java
@@ -509,6 +509,9 @@ public final class MimeUtils {
String mimeType;
try {
mimeType = context.getContentResolver().getType(uri);
+ if (mimeType != null && mimeType.equals("application/octet-stream")) {
+ mimeType = null;
+ }
} catch (Throwable throwable) {
mimeType = null;
}