[Action Corner] Handle go home action
Handle go home and go back to previous screen for overview, split and full screen task Bug: 397182595 Test: ActionCornerHandlerTest Flag: com.android.systemui.shared.cursor_hot_corner Change-Id: Ia928f102df6908058c02949db02a73430cea5ef1
This commit is contained in:
1 parent
8a868c571e
commit
d681164fe3
15 files changed
+498
-56
No files matched your search
@@ -165,16 +165,18 @@ public final class KeyboardQuickSwitchController implements
|
||||
final boolean shouldShowDesktopTasks = mControllers.taskbarDesktopModeController
|
||||
.shouldShowDesktopTasksInTaskbar();
|
||||
mExcludedTaskIds = taskIdsToExclude;
|
||||
mTaskListChangeId = mModel.getTasks((tasks) -> {
|
||||
processLoadedTasks(tasks, taskIdsToExclude);
|
||||
mQuickSwitchViewController.updateQuickSwitchView(
|
||||
mTasks,
|
||||
wasOpenedFromTaskbar ? 0 : mNumHiddenTasks,
|
||||
currentFocusIndexOverride,
|
||||
mHasDesktopTask,
|
||||
mWasDesktopTaskFilteredOut);
|
||||
}, shouldShowDesktopTasks ? RecentsFilterState.EMPTY_FILTER
|
||||
: RecentsFilterState.getDesktopTaskFilter());
|
||||
mTaskListChangeId = mModel.getTasks(
|
||||
shouldShowDesktopTasks ? RecentsFilterState.EMPTY_FILTER
|
||||
: RecentsFilterState.getDesktopTaskFilter(),
|
||||
(tasks) -> {
|
||||
processLoadedTasks(tasks, taskIdsToExclude);
|
||||
mQuickSwitchViewController.updateQuickSwitchView(
|
||||
mTasks,
|
||||
wasOpenedFromTaskbar ? 0 : mNumHiddenTasks,
|
||||
currentFocusIndexOverride,
|
||||
mHasDesktopTask,
|
||||
mWasDesktopTaskFilteredOut);
|
||||
});
|
||||
}
|
||||
|
||||
mQuickSwitchViewController.updateLayoutForSurface(wasOpenedFromTaskbar,
|
||||
@@ -221,7 +223,8 @@ public final class KeyboardQuickSwitchController implements
|
||||
}
|
||||
|
||||
mExcludedTaskIds = taskIdsToExclude;
|
||||
mTaskListChangeId = mModel.getTasks((tasks) -> {
|
||||
mTaskListChangeId = mModel.getTasks(shouldShowDesktopTasks ? RecentsFilterState.EMPTY_FILTER
|
||||
: RecentsFilterState.getDesktopTaskFilter(), (tasks) -> {
|
||||
processLoadedTasks(tasks, taskIdsToExclude);
|
||||
// Check if the first task is running after the recents model has updated so that we use
|
||||
// the correct index.
|
||||
@@ -235,8 +238,7 @@ public final class KeyboardQuickSwitchController implements
|
||||
mHasDesktopTask,
|
||||
mWasDesktopTaskFilteredOut,
|
||||
wasOpenedFromTaskbar);
|
||||
}, shouldShowDesktopTasks ? RecentsFilterState.EMPTY_FILTER
|
||||
: RecentsFilterState.getDesktopTaskFilter());
|
||||
});
|
||||
}
|
||||
|
||||
private boolean shouldExcludeTask(GroupTask task, Set<Integer> taskIdsToExclude) {
|
||||
|
||||
Reference in new issue
Block a user