diff options
| author | Ned Burns <pixel@google.com> | 2015-09-23 20:15:28 -0400 |
|---|---|---|
| committer | Ned Burns <pixel@google.com> | 2015-09-23 20:19:16 -0400 |
| commit | f4e1d10cd35a4c1f87ec6dc3e59a9d08e562ffca (patch) | |
| tree | 6626ce9bfdddbb43391079a0e31fccdd6d832e09 | |
| parent | c38ffecc348687ae30c5fa2dc1761d9138b406b6 (diff) | |
| download | frameworks_base-f4e1d10cd35a4c1f87ec6dc3e59a9d08e562ffca.zip frameworks_base-f4e1d10cd35a4c1f87ec6dc3e59a9d08e562ffca.tar.gz frameworks_base-f4e1d10cd35a4c1f87ec6dc3e59a9d08e562ffca.tar.bz2 | |
Kill ActivityView's background thread when it's destroyed
We were leaking background threads for every new ActivityView.
Change-Id: I7ce190843265567984f6cda9c85fef478b0ead38
| -rw-r--r-- | core/java/android/app/ActivityView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityView.java b/core/java/android/app/ActivityView.java index 3018fe2..6efb011 100644 --- a/core/java/android/app/ActivityView.java +++ b/core/java/android/app/ActivityView.java @@ -239,6 +239,8 @@ public class ActivityView extends ViewGroup { } mTextureView.setSurfaceTextureListener(null); + + mThread.quit(); } private void attachToSurfaceWhenReady() { |
