Allow uppercase http

This commit is contained in:
M66B
2022-08-26 17:29:53 +02:00
parent 10eef9506a
commit 7c20e2ee97
4 changed files with 26 additions and 12 deletions

View File

@@ -888,7 +888,7 @@ public class Helper {
static void view(Context context, Intent intent) {
Uri uri = intent.getData();
if ("http".equals(uri.getScheme()) || "https".equals(uri.getScheme()))
if (UriHelper.isHyperLink(uri))
view(context, intent.getData(), false);
else
try {
@@ -924,7 +924,9 @@ public class Helper {
" isInstalled=" + isInstalled(context, open_with_pkg) +
" hasCustomTabs=" + hasCustomTabs(context, uri, open_with_pkg));
if (!UriHelper.isHyperLink(uri)) {
if (UriHelper.isHyperLink(uri))
uri = UriHelper.fix(uri);
else {
open_with_pkg = null;
open_with_tabs = false;
}