From 6cb485fd2e2f8ace05e1ff281ab0fc824d3652cb Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 19 May 2014 10:30:43 -0700 Subject: Fixing regression in dismissing Recents. - Restoring app info functionality when developer options are enabled and you long-press on the app icon. Change-Id: I8a20ff5f595eefa20db5528c0d5b1a1f0b110834 --- .../src/com/android/systemui/recents/RecentsActivity.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java') diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java index 325e4b0..591b175 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java @@ -83,8 +83,13 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView Console.log(Constants.Log.App.SystemUIHandshake, "[RecentsActivity|serviceBroadcast]", action, Console.AnsiRed); if (action.equals(RecentsService.ACTION_HIDE_RECENTS_ACTIVITY)) { - // Dismiss recents, launching the focused task - dismissRecentsIfVisible(); + if (intent.getBooleanExtra(RecentsService.EXTRA_TRIGGERED_FROM_ALT_TAB, false)) { + // Dismiss recents, launching the focused task + dismissRecentsIfVisible(); + } else { + // Otherwise, just finish the activity without launching any other activities + finish(); + } } else if (action.equals(RecentsService.ACTION_TOGGLE_RECENTS_ACTIVITY)) { // Try and unfilter and filtered stacks if (!mRecentsView.unfilterFilteredStacks()) { -- cgit v1.1