diff options
| author | Iris Yang <irisykyang@google.com> | 2022-05-25 17:04:39 +0800 |
|---|---|---|
| committer | Iris Yang <irisykyang@google.com> | 2022-05-27 12:15:45 +0800 |
| commit | 30356d273a01126bf77865ced38e8a9e70ea2e1b (patch) | |
| tree | 57124ce694aa06cc3dad9e781594b54a035629d9 /core/java/android/window/DisplayWindowPolicyController.java | |
| parent | 606074be1843a572626d875d778fe2ef5fce42cc (diff) | |
Use DeviceProfile to determine whether to exclude tasks from Recent
For Android Auto, tasks should exclude from Recents by default.
For App streaming device profile, tasks should be showed from Recents.
This change also keep the most recent task of "Default display" in
Recents even if it's excluded from Recents.
Bug: 232385935
Test: atest WmTests:RecentTasksTest
Change-Id: Ic01ed6bbae1f2b77f8664196cbc59b248f5ec3b4
Diffstat (limited to 'core/java/android/window/DisplayWindowPolicyController.java')
| -rw-r--r-- | core/java/android/window/DisplayWindowPolicyController.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/window/DisplayWindowPolicyController.java b/core/java/android/window/DisplayWindowPolicyController.java index d3cc918c2a29..a5aefd5157ce 100644 --- a/core/java/android/window/DisplayWindowPolicyController.java +++ b/core/java/android/window/DisplayWindowPolicyController.java @@ -126,6 +126,11 @@ public abstract class DisplayWindowPolicyController { ActivityInfo activityInfo, int windowFlags, int systemWindowFlags); /** + * Returns {@code true} if the tasks which is on this virtual display can be showed on Recents. + */ + public abstract boolean canShowTasksInRecents(); + + /** * This is called when the top activity of the display is changed. */ public void onTopActivityChanged(ComponentName topActivity, int uid) {} |
