In some case, like in Email, the WebView can be
detached from Window long after it is destroyed.
As we freed the native side by setting mWebViewCore
to null, we can't access settings any more. In this
case, just hide both styles of zoom control.

Fix http://b/issue?id=2532401
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 2858e0e..cabda85 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -5773,6 +5773,15 @@
     }
 
     void dismissZoomControl() {
+        if (mWebViewCore == null) {
+            // maybe called after WebView's destroy(). As we can't get settings,
+            // just hide zoom control for both styles.
+            mZoomButtonsController.setVisible(false);
+            if (mZoomControls != null) {
+                mZoomControls.hide();
+            }
+            return;
+        }
         WebSettings settings = getSettings();
         if (settings.getBuiltInZoomControls()) {
             if (mZoomButtonsController.isVisible()) {