summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Grace Kloba <klobag@google.com> 2010-01-11 16:35:32 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-01-11 16:35:32 -0800
commitbb4ad6a8a36b01a3ee6b8c40f256c8a9bf80b704 (patch)
treedb971124277e1a7eef5701c4d65202b86bdf4708
parent593c6a551663efb33802fa4aaa475f3be6a6d1b4 (diff)
parent4c7ec8d6ab11408b6a9767b50c9fa73a834fe9a4 (diff)
Merge "As setNewZoomScale is called asynchronously, the WebView can be destroyed. If it is, skip scaling."
-rw-r--r--core/java/android/webkit/WebView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index b10d7860c923..3c6cd9caadd4 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -3892,7 +3892,9 @@ 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
- setNewZoomScale(mActualScale, true);
+ if (mWebViewCore != null) {
+ setNewZoomScale(mActualScale, true);
+ }
}
});
}