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

Commit a6c5d383 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang
Browse files

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

Change-Id: I137a897844953bf6b8510b6ee5d6eb89b4b78a6a
parent 52fc810f
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);