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 --- policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'policy') diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 466c8ed..3653b17 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -2222,7 +2222,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { } else if (!down && mRecentAppsHeldModifiers != 0 && (metaState & mRecentAppsHeldModifiers) == 0) { mRecentAppsHeldModifiers = 0; - hideRecentApps(); + hideRecentApps(true); } // Handle keyboard language switching. @@ -2430,12 +2430,12 @@ public class PhoneWindowManager implements WindowManagerPolicy { } } - private void hideRecentApps() { + private void hideRecentApps(boolean triggeredFromAltTab) { mPreloadedRecentApps = false; // preloading no longer needs to be canceled try { IStatusBarService statusbar = getStatusBarService(); if (statusbar != null) { - statusbar.hideRecentApps(); + statusbar.hideRecentApps(triggeredFromAltTab); } } catch (RemoteException e) { Slog.e(TAG, "RemoteException when closing recent apps", e); -- cgit v1.1