diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java index b65b864..dd75921 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java @@ -54,8 +54,11 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView finish(); } } else if (action.equals(RecentsService.ACTION_TOGGLE_RECENTS_ACTIVITY)) { - // Dismiss recents and launch the first task if possible - dismissRecentsIfVisible(); + // Try and unfilter and filtered stacks + if (!mRecentsView.unfilterFilteredStacks()) { + // If there are no filtered stacks, dismiss recents and launch the first task + dismissRecentsIfVisible(); + } } } }; |