Skip to content

Commit

Permalink
Merge branch 'headline_dialog_and_file_detection' of github.com:harsh…
Browse files Browse the repository at this point in the history
…ad1/markor into headline_dialog_and_file_detection
  • Loading branch information
harshad1 committed May 23, 2024
2 parents fcb98de + 019563c commit 4eb99a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/net/gsantner/opoc/util/GsFileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/**
Expand Down

0 comments on commit 4eb99a7

Please sign in to comment.