Fix for recents button quick switch with only focus and desktop task

This CL also fixes : Home -> Recents -> Recents opens the last large tile (Which was broken when there is desktop window tile in recents.)

Test: Manual
BUG: 365756337
Fix: 365756337
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
Change-Id: I0b8fe3a0a7074355f14ced23ae282fe2943d8ce9
This commit is contained in:
vinayjoglekar
2024-10-01 16:42:03 -07:00
parent cbe8f8f71d
commit b6ac8b2ae9
2 changed files with 42 additions and 7 deletions
@@ -4567,6 +4567,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());