Skip to content

Commit 8b0d90e

Browse files
author
George Mount
committed
Wait for zoom manager to update before sending new picture event.
Bug 6315070 Change-Id: I80be7680499705f7865abc8ef753db1bb63ef44f
1 parent 22bf2a6 commit 8b0d90e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8089,17 +8089,17 @@ void setNewPicture(final WebViewCore.DrawData draw, boolean updateBaseLayer) {
80898089
mWebView.invalidate();
80908090
}
80918091

8092-
if (mPictureListener != null) {
8093-
mPictureListener.onNewPicture(getWebView(), capturePicture());
8094-
}
8095-
80968092
// update the zoom information based on the new picture
80978093
mZoomManager.onNewPicture(draw);
80988094

80998095
if (isPictureAfterFirstLayout) {
81008096
mViewManager.postReadyToDrawAll();
81018097
}
81028098
scrollEditWithCursor();
8099+
8100+
if (mPictureListener != null) {
8101+
mPictureListener.onNewPicture(getWebView(), capturePicture());
8102+
}
81038103
}
81048104

81058105
/**

0 commit comments

Comments
 (0)