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

Commit 50c5d2be authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Change log msg since viewport can be changed before first layout."

parents 8a08b0c5 a6c5d383
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2344,7 +2344,9 @@ public final class WebViewCore {
            webViewWidth = mWebView.getViewWidth();
            viewportWidth = (int) (webViewWidth / adjust);
            if (viewportWidth == 0) {
                Log.w(LOGTAG, "Can't get the viewWidth after the first layout");
                if (DebugFlags.WEB_VIEW_CORE) {
                    Log.v(LOGTAG, "Can't get the viewWidth yet");
                }
            }
        } else {
            webViewWidth = Math.round(viewportWidth * mCurrentViewScale);