do not preview html within our text view

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-08-21 11:44:57 +02:00
parent de38e90acb
commit 856916e658
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -376,6 +376,7 @@ public class PreviewTextFileFragment extends PreviewTextFragment {
unsupportedTypes.add("text/vnd.rn-realtext");
unsupportedTypes.add("text/vnd.wap.wml");
unsupportedTypes.add("text/vnd.wap.wmlscript");
unsupportedTypes.add("text/html");
return file != null && file.isDown() && MimeTypeUtil.isText(file) &&
!unsupportedTypes.contains(file.getMimeType()) &&
!unsupportedTypes.contains(MimeTypeUtil.getMimeTypeFromPath(file.getRemotePath()));