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

Commit 4c7ec8d6 authored by Grace Kloba's avatar Grace Kloba
Browse files

As setNewZoomScale is called asynchronously, the

WebView can be destroyed. If it is, skip scaling.

Fix http://b/issue?id=2366538
parent 17acf174
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3892,8 +3892,10 @@ public class WebView extends AbsoluteLayout
            public void run() {
                // we always force, in case our height changed, in which case we
                // still want to send the notification over to webkit
                if (mWebViewCore != null) {
                    setNewZoomScale(mActualScale, true);
                }
            }
        });
    }