Merge "As setNewZoomScale is called asynchronously, the WebView can be destroyed. If it is, skip scaling."

This commit is contained in:
Grace Kloba
2010-01-11 16:35:32 -08:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}
});
}