Merge "Add API WebView.getWebViewLooper()" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-21 11:59:28 +00:00
committed by Android (Google) Code Review
2 changed files with 9 additions and 0 deletions

View File

@@ -52004,6 +52004,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();

View File

@@ -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.
*/