diff options
author | John Reck <jreck@google.com> | 2011-09-13 16:55:27 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-09-13 16:55:27 -0700 |
commit | 9d19923bb599bee6137a4adab17675d954f0584a (patch) | |
tree | d52a81cb780a4e899295e4256de7f0c8fa20dc4d | |
parent | c75994947a5708f808c80a75358309f351e8e60f (diff) | |
parent | b9376464ab3bbbf1c97aa6675987d4555c8c51e9 (diff) | |
download | frameworks_base-9d19923bb599bee6137a4adab17675d954f0584a.zip frameworks_base-9d19923bb599bee6137a4adab17675d954f0584a.tar.gz frameworks_base-9d19923bb599bee6137a4adab17675d954f0584a.tar.bz2 |
Merge "Make sure the finalizer destroy runs on the UI thread"
-rw-r--r-- | core/java/android/webkit/WebView.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 065beb1..1f14b05 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -4021,7 +4021,14 @@ public class WebView extends AbsoluteLayout @Override protected void finalize() throws Throwable { try { - destroyImpl(); + if (mNativeClass != 0) { + post(new Runnable() { + @Override + public void run() { + destroy(); + } + }); + } } finally { super.finalize(); } |