diff --git a/app/src/main/java/net/gsantner/opoc/util/GsFileUtils.java b/app/src/main/java/net/gsantner/opoc/util/GsFileUtils.java index 524ba77ec..19a687228 100644 --- a/app/src/main/java/net/gsantner/opoc/util/GsFileUtils.java +++ b/app/src/main/java/net/gsantner/opoc/util/GsFileUtils.java @@ -524,7 +524,7 @@ public static String getMimeType(final File file) { public static boolean isTextFile(File file) { final String mime = getMimeType(file); - return mime != null && (mime.startsWith("text/") || mime.contains("xml")); + return mime != null && (mime.startsWith("text/") || mime.contains("xml")) && !mime.contains("openxml"); } /**