diff options
| author | Winson Chung <winsonc@google.com> | 2014-09-29 13:16:05 -0700 |
|---|---|---|
| committer | Winson Chung <winsonc@google.com> | 2014-10-01 17:48:05 +0000 |
| commit | 9cb5c4e3854aa7f2ddab707920b688c3108cbc85 (patch) | |
| tree | 98a717d583067a0881556048931f00a44f62761a /packages/SystemUI/src/com/android/systemui/recents/misc | |
| parent | 51a400eb440c89fb06a47371bb7b026f00edb09c (diff) | |
| download | frameworks_base-9cb5c4e3854aa7f2ddab707920b688c3108cbc85.zip frameworks_base-9cb5c4e3854aa7f2ddab707920b688c3108cbc85.tar.gz frameworks_base-9cb5c4e3854aa7f2ddab707920b688c3108cbc85.tar.bz2 | |
Ensure that we don't show excluded tasks when we are not in that task (Bug 17657618)
- Fix regression with launching an affiliated task due to clipping changes (Bug 17755902)
- Tweaking previous changes to home transition
- Disable the debug mode option
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents/misc')
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/misc/DebugTrigger.java | 3 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/misc/DebugTrigger.java b/packages/SystemUI/src/com/android/systemui/recents/misc/DebugTrigger.java index d000985..fbf8a86 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/misc/DebugTrigger.java +++ b/packages/SystemUI/src/com/android/systemui/recents/misc/DebugTrigger.java @@ -19,6 +19,7 @@ package com.android.systemui.recents.misc; import android.os.Handler; import android.os.SystemClock; import android.view.KeyEvent; +import com.android.systemui.recents.Constants; /** * A trigger for catching a debug chord. @@ -48,6 +49,8 @@ public class DebugTrigger { * then we just call the callback. */ public void onKeyEvent(int keyCode) { + if (!Constants.DebugFlags.App.EnableDebugMode) return; + if (mLastKeyCode == 0) { if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { mLastKeyCode = keyCode; diff --git a/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java b/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java index 9554f01..71a3ef1 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java +++ b/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java @@ -138,7 +138,8 @@ public class SystemServicesProxy { } /** Returns a list of the recents tasks */ - public List<ActivityManager.RecentTaskInfo> getRecentTasks(int numLatestTasks, int userId) { + public List<ActivityManager.RecentTaskInfo> getRecentTasks(int numLatestTasks, int userId, + boolean isTopTaskHome) { if (mAm == null) return null; // If we are mocking, then create some recent tasks @@ -195,10 +196,11 @@ public class SystemServicesProxy { // tasks // Check the first non-recents task, include this task even if it is marked as excluded - // from recents. In other words, only remove excluded tasks if it is not the first task + // from recents if we are currently in the app. In other words, only remove excluded + // tasks if it is not the first active task. boolean isExcluded = (t.baseIntent.getFlags() & Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS) == Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS; - if (isExcluded && !isFirstValidTask) { + if (isExcluded && (isTopTaskHome || !isFirstValidTask)) { iter.remove(); continue; } |
