Merge "Fix for recents button quick switch with only focus and desktop task" into main

This commit is contained in:
Treehugger Robot
2024-10-04 05:05:37 +00:00
committed by Android (Google) Code Review
2 changed files with 42 additions and 7 deletions
@@ -4571,6 +4571,20 @@ public abstract class RecentsView<
return getTaskViewAt(getRunningTaskIndex() + 1);
}
@Nullable
public TaskView getPreviousTaskView() {
return getTaskViewAt(getRunningTaskIndex() - 1);
}
@Nullable
public TaskView getLastLargeTaskView() {
return mUtils.getLastLargeTaskView(getTaskViews());
}
public int getLargeTilesCount() {
return mUtils.getLargeTileCount(getTaskViews());
}
@Nullable
public TaskView getCurrentPageTaskView() {
return getTaskViewAt(getCurrentPage());