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

Commit 6abde8b1 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Add API WebView.getWebViewLooper()

We want to rename WebView.getLooper() to contrast it better with the
unrelated method WebView.getHandler(). For now we just create a method
to replace WebView.getLooper(), so that we can remove references to
WebView.getLooper() before removing it.

Bug: 74831609
Test: make
Change-Id: I8e493a67aa078f9c8ceea6706dc940abacfdd6e6
parent 039deb43
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -51997,6 +51997,7 @@ package android.webkit {
    method public android.webkit.WebChromeClient getWebChromeClient();
    method public static java.lang.ClassLoader getWebViewClassLoader();
    method public android.webkit.WebViewClient getWebViewClient();
    method public android.os.Looper getWebViewLooper();
    method public void goBack();
    method public void goBackOrForward(int);
    method public void goForward();
+8 −0
Original line number Diff line number Diff line
@@ -2447,6 +2447,14 @@ public class WebView extends AbsoluteLayout
        return getFactory().getWebViewClassLoader();
    }

    /**
     * Returns the {@link Looper} corresponding to the thread on which WebView calls must be made.
     */
    @NonNull
    public Looper getWebViewLooper() {
        return mWebViewThread;
    }

    /**
     * Returns the {@link Looper} corresponding to the thread on which WebView calls must be made.
     */