commit | 19fc117c2f8f0719aa40a1ff0efe27e2bd6d1efc | [log] [tgz] |
---|---|---|
author | Winson Chung <winson.chung@gmail.com> | Thu Jul 31 18:40:03 2014 -0700 |
committer | Winson Chung <winsonc@google.com> | Fri Aug 01 14:40:58 2014 +0000 |
tree | ac949d3e0bb92a77d0dbcfba1b8cc14532c3c474 | |
parent | be0f59ea6504df401d3798b2466dd513a2244412 [diff] [blame] |
Unregistering receiver in onStart/Stop vs onCreate/Destroy. (Bug 16513124) Change-Id: I11ccc3cea41311d74811dc19e6950da3bbddbfe2
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java index cd2cbe7..1a32b81 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
@@ -121,6 +121,17 @@ } } + /** Removes all the task stack views from this recents view. */ + public void removeAllTaskStacks() { + int childCount = getChildCount(); + for (int i = childCount - 1; i >= 0; i--) { + View child = getChildAt(i); + if (child != mSearchBar) { + removeViewAt(i); + } + } + } + /** Launches the focused task from the first stack if possible */ public boolean launchFocusedTask() { // Get the first stack view