Skip to content

Commit 4aad102

Browse files
Improving PictureListener deprecating comments
Change-Id: If189823962c49db9681845996e97eec31fedcca6
1 parent de8c5ec commit 4aad102

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/java/android/webkit/WebView.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,11 @@ public interface PictureListener {
927927
* Notify the listener that the picture has changed.
928928
* @param view The WebView that owns the picture.
929929
* @param picture The new picture.
930-
* @deprecated This method is now obsolete.
930+
* @deprecated Due to internal changes, the picture does not include
931+
* composited layers such as fixed position elements or scrollable divs.
932+
* While the PictureListener API can still be used to detect changes in
933+
* the WebView content, you are advised against its usage until a replacement
934+
* is provided in a future Android release
931935
*/
932936
@Deprecated
933937
public void onNewPicture(WebView view, Picture picture);

0 commit comments

Comments
 (0)