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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user