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

Commit f8e99204 authored by Mangesh Ghiware's avatar Mangesh Ghiware Committed by Android Git Automerger
Browse files

am b215726a: Merge "Remove transient and unnecessary update density message." into jb-dev

* commit 'b215726a':
  Remove transient and unnecessary update density message.
parents 1178569b b215726a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2550,6 +2550,11 @@ public final class WebViewCore {
            adjust = (float) mContext.getResources().getDisplayMetrics().densityDpi
                    / mViewportDensityDpi;
        }
        // Remove any update density messages in flight.
        // If the density is indeed different from WebView's default scale,
        // a new message will be queued.
        mWebViewClassic.mPrivateHandler.removeMessages(
                WebViewClassic.UPDATE_ZOOM_DENSITY);
        if (adjust != mWebViewClassic.getDefaultZoomScale()) {
            Message.obtain(mWebViewClassic.mPrivateHandler,
                    WebViewClassic.UPDATE_ZOOM_DENSITY, adjust).sendToTarget();