Prevent opening files

pull/214/head
M66B 6 months ago
parent 47a5f50056
commit d9db3b6f7c

@ -1108,6 +1108,11 @@ public class Helper {
" isInstalled=" + isInstalled(context, open_with_pkg) +
" hasCustomTabs=" + hasCustomTabs(context, uri, open_with_pkg));
if ("file".equals(uri.getScheme())) {
reportNoViewer(context, uri, new SecurityException("Cannot open files"));
return;
}
if (UriHelper.isHyperLink(uri))
uri = UriHelper.fix(uri);
else {

Loading…
Cancel
Save