Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d19923b authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Make sure the finalizer destroy runs on the UI thread"

parents c7599494 b9376464
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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();
        }