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

Commit ddc5d806 authored by Nate Fischer's avatar Nate Fischer
Browse files

WebView: document when we call deprecated callbacks

No change to behavior, only documentation.

Bug: 40681342
Test: N/A
Flag: DOCS_ONLY
Change-Id: Idf21fb74e31e5ac72139b05d439871fcfcab208f
parent b901d60f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -51,7 +51,8 @@ public class WebViewClient {
     * @param url The URL to be loaded.
     * @return {@code true} to cancel the current load, otherwise return {@code false}.
     * @deprecated Use {@link #shouldOverrideUrlLoading(WebView, WebResourceRequest)
     *             shouldOverrideUrlLoading(WebView, WebResourceRequest)} instead.
     *             shouldOverrideUrlLoading(WebView, WebResourceRequest)} on {@link
     *             android.os.Build.VERSION_CODES#N} and above.
     */
    @Deprecated
    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
     *         resource itself.
     * @deprecated Use {@link #shouldInterceptRequest(WebView, WebResourceRequest)
     *             shouldInterceptRequest(WebView, WebResourceRequest)} instead.
     *             shouldInterceptRequest(WebView, WebResourceRequest)} on {@link
     *             android.os.Build.VERSION_CODES#M} and above.
     */
    @Deprecated
    @Nullable
@@ -326,7 +328,8 @@ public class WebViewClient {
     * @param description A String describing the error.
     * @param failingUrl The url that failed to load.
     * @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
    public void onReceivedError(WebView view, int errorCode,