diff --git a/flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/content_blocker/ContentBlockerHandler.java b/flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/content_blocker/ContentBlockerHandler.java index 6badbc86..4478331e 100755 --- a/flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/content_blocker/ContentBlockerHandler.java +++ b/flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/content_blocker/ContentBlockerHandler.java @@ -62,8 +62,8 @@ public class ContentBlockerHandler { try { u = new URI(url); } catch (URISyntaxException e) { - String[] urlSplitted = url.split(":"); - String scheme = urlSplitted[0]; + String[] urlSplit = url.split(":"); + String scheme = urlSplit[0]; URL tempUrl = new URL(url.replace(scheme, "https")); u = new URI(scheme, tempUrl.getUserInfo(), tempUrl.getHost(), tempUrl.getPort(), tempUrl.getPath(), tempUrl.getQuery(), tempUrl.getRef()); } diff --git a/flutter_inappwebview_android/lib/src/in_app_webview/in_app_webview_controller.dart b/flutter_inappwebview_android/lib/src/in_app_webview/in_app_webview_controller.dart index 9bb24a73..194630cd 100644 --- a/flutter_inappwebview_android/lib/src/in_app_webview/in_app_webview_controller.dart +++ b/flutter_inappwebview_android/lib/src/in_app_webview/in_app_webview_controller.dart @@ -1745,7 +1745,7 @@ class AndroidInAppWebViewController extends PlatformInAppWebViewController String urlIcon, String? rel, String? sizes, bool isManifest) { List favicons = []; - List urlSplitted = urlIcon.split("/"); + List urlSplit = urlIcon.split("/"); if (!_isUrlAbsolute(urlIcon)) { if (urlIcon.startsWith("/")) { urlIcon = urlIcon.substring(1); @@ -1757,7 +1757,7 @@ class AndroidInAppWebViewController extends PlatformInAppWebViewController } if (isManifest) { rel = (sizes != null) - ? urlSplitted[urlSplitted.length - 1] + ? urlSplit[urlSplit.length - 1] .replaceFirst("-" + sizes, "") .split(" ")[0] .split(".")[0] diff --git a/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview_controller.dart b/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview_controller.dart index b1232a7c..221db9de 100644 --- a/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview_controller.dart +++ b/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview_controller.dart @@ -1741,7 +1741,7 @@ class IOSInAppWebViewController extends PlatformInAppWebViewController String urlIcon, String? rel, String? sizes, bool isManifest) { List favicons = []; - List urlSplitted = urlIcon.split("/"); + List urlSplit = urlIcon.split("/"); if (!_isUrlAbsolute(urlIcon)) { if (urlIcon.startsWith("/")) { urlIcon = urlIcon.substring(1); @@ -1753,7 +1753,7 @@ class IOSInAppWebViewController extends PlatformInAppWebViewController } if (isManifest) { rel = (sizes != null) - ? urlSplitted[urlSplitted.length - 1] + ? urlSplit[urlSplit.length - 1] .replaceFirst("-" + sizes, "") .split(" ")[0] .split(".")[0] diff --git a/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview_controller.dart b/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview_controller.dart index 40ea29ff..49a35b01 100644 --- a/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview_controller.dart +++ b/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview_controller.dart @@ -1742,7 +1742,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController String urlIcon, String? rel, String? sizes, bool isManifest) { List favicons = []; - List urlSplitted = urlIcon.split("/"); + List urlSplit = urlIcon.split("/"); if (!_isUrlAbsolute(urlIcon)) { if (urlIcon.startsWith("/")) { urlIcon = urlIcon.substring(1); @@ -1754,7 +1754,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController } if (isManifest) { rel = (sizes != null) - ? urlSplitted[urlSplitted.length - 1] + ? urlSplit[urlSplit.length - 1] .replaceFirst("-" + sizes, "") .split(" ")[0] .split(".")[0] diff --git a/flutter_inappwebview_web/lib/src/in_app_webview/in_app_webview_controller.dart b/flutter_inappwebview_web/lib/src/in_app_webview/in_app_webview_controller.dart index a98faeb8..0c673f78 100644 --- a/flutter_inappwebview_web/lib/src/in_app_webview/in_app_webview_controller.dart +++ b/flutter_inappwebview_web/lib/src/in_app_webview/in_app_webview_controller.dart @@ -354,7 +354,7 @@ class WebPlatformInAppWebViewController extends PlatformInAppWebViewController String urlIcon, String? rel, String? sizes, bool isManifest) { List favicons = []; - List urlSplitted = urlIcon.split("/"); + List urlSplit = urlIcon.split("/"); if (!_isUrlAbsolute(urlIcon)) { if (urlIcon.startsWith("/")) { urlIcon = urlIcon.substring(1); @@ -366,7 +366,7 @@ class WebPlatformInAppWebViewController extends PlatformInAppWebViewController } if (isManifest) { rel = (sizes != null) - ? urlSplitted[urlSplitted.length - 1] + ? urlSplit[urlSplit.length - 1] .replaceFirst("-" + sizes, "") .split(" ")[0] .split(".")[0]