Loading core/java/android/webkit/WebViewClient.java +6 −3 Original line number Original line Diff line number Diff line Loading @@ -51,7 +51,8 @@ public class WebViewClient { * @param url The URL to be loaded. * @param url The URL to be loaded. * @return {@code true} to cancel the current load, otherwise return {@code false}. * @return {@code true} to cancel the current load, otherwise return {@code false}. * @deprecated Use {@link #shouldOverrideUrlLoading(WebView, WebResourceRequest) * @deprecated Use {@link #shouldOverrideUrlLoading(WebView, WebResourceRequest) * shouldOverrideUrlLoading(WebView, WebResourceRequest)} instead. * shouldOverrideUrlLoading(WebView, WebResourceRequest)} on {@link * android.os.Build.VERSION_CODES#N} and above. */ */ @Deprecated @Deprecated public boolean shouldOverrideUrlLoading(WebView view, String url) { public boolean shouldOverrideUrlLoading(WebView view, String url) { Loading Loading @@ -192,7 +193,8 @@ public class WebViewClient { * response information or {@code null} if the WebView should load the * response information or {@code null} if the WebView should load the * resource itself. * resource itself. * @deprecated Use {@link #shouldInterceptRequest(WebView, WebResourceRequest) * @deprecated Use {@link #shouldInterceptRequest(WebView, WebResourceRequest) * shouldInterceptRequest(WebView, WebResourceRequest)} instead. * shouldInterceptRequest(WebView, WebResourceRequest)} on {@link * android.os.Build.VERSION_CODES#M} and above. */ */ @Deprecated @Deprecated @Nullable @Nullable Loading Loading @@ -326,7 +328,8 @@ public class WebViewClient { * @param description A String describing the error. * @param description A String describing the error. * @param failingUrl The url that failed to load. * @param failingUrl The url that failed to load. * @deprecated Use {@link #onReceivedError(WebView, WebResourceRequest, WebResourceError) * @deprecated Use {@link #onReceivedError(WebView, WebResourceRequest, WebResourceError) * onReceivedError(WebView, WebResourceRequest, WebResourceError)} instead. * onReceivedError(WebView, WebResourceRequest, WebResourceError)} on {@link * android.os.Build.VERSION_CODES#M} and above. */ */ @Deprecated @Deprecated public void onReceivedError(WebView view, int errorCode, public void onReceivedError(WebView view, int errorCode, Loading Loading
core/java/android/webkit/WebViewClient.java +6 −3 Original line number Original line Diff line number Diff line Loading @@ -51,7 +51,8 @@ public class WebViewClient { * @param url The URL to be loaded. * @param url The URL to be loaded. * @return {@code true} to cancel the current load, otherwise return {@code false}. * @return {@code true} to cancel the current load, otherwise return {@code false}. * @deprecated Use {@link #shouldOverrideUrlLoading(WebView, WebResourceRequest) * @deprecated Use {@link #shouldOverrideUrlLoading(WebView, WebResourceRequest) * shouldOverrideUrlLoading(WebView, WebResourceRequest)} instead. * shouldOverrideUrlLoading(WebView, WebResourceRequest)} on {@link * android.os.Build.VERSION_CODES#N} and above. */ */ @Deprecated @Deprecated public boolean shouldOverrideUrlLoading(WebView view, String url) { public boolean shouldOverrideUrlLoading(WebView view, String url) { Loading Loading @@ -192,7 +193,8 @@ public class WebViewClient { * response information or {@code null} if the WebView should load the * response information or {@code null} if the WebView should load the * resource itself. * resource itself. * @deprecated Use {@link #shouldInterceptRequest(WebView, WebResourceRequest) * @deprecated Use {@link #shouldInterceptRequest(WebView, WebResourceRequest) * shouldInterceptRequest(WebView, WebResourceRequest)} instead. * shouldInterceptRequest(WebView, WebResourceRequest)} on {@link * android.os.Build.VERSION_CODES#M} and above. */ */ @Deprecated @Deprecated @Nullable @Nullable Loading Loading @@ -326,7 +328,8 @@ public class WebViewClient { * @param description A String describing the error. * @param description A String describing the error. * @param failingUrl The url that failed to load. * @param failingUrl The url that failed to load. * @deprecated Use {@link #onReceivedError(WebView, WebResourceRequest, WebResourceError) * @deprecated Use {@link #onReceivedError(WebView, WebResourceRequest, WebResourceError) * onReceivedError(WebView, WebResourceRequest, WebResourceError)} instead. * onReceivedError(WebView, WebResourceRequest, WebResourceError)} on {@link * android.os.Build.VERSION_CODES#M} and above. */ */ @Deprecated @Deprecated public void onReceivedError(WebView view, int errorCode, public void onReceivedError(WebView view, int errorCode, Loading