mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 18:28:59 +03:00
do not preview html within our text view
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
de38e90acb
commit
856916e658
1 changed files with 1 additions and 0 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue