Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be0938ca authored by Peter Birk Pakkenberg's avatar Peter Birk Pakkenberg Committed by Android (Google) Code Review
Browse files

Merge "WebView: document when we call deprecated callbacks" into main

parents b97dfc67 ddc5d806
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -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) {
@@ -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
@@ -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,