From e8ec7d9a4f088fa9e902e807afaa66ea1eab9a45 Mon Sep 17 00:00:00 2001 From: shinriyo Date: Tue, 6 Oct 2020 16:51:09 +0900 Subject: [PATCH] add SuppressWarnings you already use `boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request)` new method. so, I just added `SuppressWarnings` --- .../main/java/com/flutter_webview_plugin/BrowserClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/flutter_webview_plugin/BrowserClient.java b/android/src/main/java/com/flutter_webview_plugin/BrowserClient.java index d3e136e6..768918bb 100644 --- a/android/src/main/java/com/flutter_webview_plugin/BrowserClient.java +++ b/android/src/main/java/com/flutter_webview_plugin/BrowserClient.java @@ -76,6 +76,7 @@ public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request return isInvalid; } + @SuppressWarnings("deprecation") @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // returning true causes the current WebView to abort loading the URL, @@ -116,4 +117,4 @@ private boolean checkInvalidUrl(String url) { return matcher.lookingAt(); } } -} \ No newline at end of file +}