Skip to content

Commit 5540abc

Browse files
committed
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
1 parent cb99512 commit 5540abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/webkit/WebView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@ public void refreshPlugins(boolean reloadOpenPages) {
40234023
protected void finalize() throws Throwable {
40244024
try {
40254025
if (mNativeClass != 0) {
4026-
post(new Runnable() {
4026+
mPrivateHandler.post(new Runnable() {
40274027
@Override
40284028
public void run() {
40294029
destroy();

0 commit comments

Comments
 (0)