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

Commit f4e1d10c authored by Ned Burns's avatar Ned Burns
Browse files

Kill ActivityView's background thread when it's destroyed

We were leaking background threads for every new ActivityView.

Change-Id: I7ce190843265567984f6cda9c85fef478b0ead38
parent c38ffecc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -239,6 +239,8 @@ public class ActivityView extends ViewGroup {
        }

        mTextureView.setSurfaceTextureListener(null);

        mThread.quit();
    }

    private void attachToSurfaceWhenReady() {