From 5540abcdef5f2e7037fc4a1fd525ca823b6a1a58 Mon Sep 17 00:00:00 2001 From: John Reck Date: Thu, 15 Sep 2011 11:08:00 -0700 Subject: [PATCH] DO NOT MERGE Fix finalization Bug: 5321358 Destroy does run with this. Ideally we should get rid of the need to run this on the UI thread at all. GL destroy should instead take place when the view is detached or something like that. Cherry picked from master Change-Id: I693ce83cd607186173d8cf58485c5df28004e52c --- core/java/android/webkit/WebView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index be42608ded110..fae2c6fa51093 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -4023,7 +4023,7 @@ public class WebView extends AbsoluteLayout protected void finalize() throws Throwable { try { if (mNativeClass != 0) { - post(new Runnable() { + mPrivateHandler.post(new Runnable() { @Override public void run() { destroy();