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

Commit f39d2660 authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

fix NullPointerException caused by inflating XML Webview that is

defined to be non-visible.

Change-Id: I3233428d1cc74e90c6431cc1796592af6a7a62d8
http://b/2794841
parent 3fef4f5a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3970,7 +3970,9 @@ public class WebView extends AbsoluteLayout
    @Override
    protected void onVisibilityChanged(View changedView, int visibility) {
        super.onVisibilityChanged(changedView, visibility);
        if (visibility != View.VISIBLE) {
        // The zoomManager may be null if the webview is created from XML that
        // specifies the view's visibility param as not visible (see http://b/2794841)
        if (visibility != View.VISIBLE && mZoomManager != null) {
            mZoomManager.dismissZoomPicker();
        }
    }