summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-03-11 23:59:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-03-11 23:59:07 +0000
commitdfd3a1b8522a42ba3a713d62cae04b00bf46f044 (patch)
tree69e23ff3c6e0c4319ed1ee036b7c33d829ee1ae2 /core/java
parent04d262db157f15c2d822708e57715d80e3f14585 (diff)
parentce222afda74698f7435155fd9064fc44cd002478 (diff)
Merge "onPageFinished javadoc cleanup" into pi-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/webkit/WebViewClient.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/webkit/WebViewClient.java b/core/java/android/webkit/WebViewClient.java
index a29d44966540..26c21753a23f 100644
--- a/core/java/android/webkit/WebViewClient.java
+++ b/core/java/android/webkit/WebViewClient.java
@@ -102,9 +102,11 @@ public class WebViewClient {
/**
* Notify the host application that a page has finished loading. This method
- * is called only for main frame. When onPageFinished() is called, the
- * rendering picture may not be updated yet. To get the notification for the
- * new Picture, use {@link WebView.PictureListener#onNewPicture}.
+ * is called only for main frame. Receiving an {@code onPageFinished()} callback does not
+ * guarantee that the next frame drawn by WebView will reflect the state of the DOM at this
+ * point. In order to be notified that the current DOM state is ready to be rendered, request a
+ * visual state callback with {@link WebView#postVisualStateCallback} and wait for the supplied
+ * callback to be triggered.
*
* @param view The WebView that is initiating the callback.
* @param url The url of the page.