Merge "Correct the page scrolls of the AddDesktopButton" into main

This commit is contained in:
Treehugger Robot
2025-02-21 12:59:52 -08:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 2 deletions
@@ -6248,8 +6248,8 @@ public abstract class RecentsView<
int addDesktopButtonIndex = indexOfChild(mAddDesktopButton);
if (addDesktopButtonIndex != -1 && addDesktopButtonIndex < outPageScrolls.length) {
outPageScrolls[addDesktopButtonIndex] =
newPageScrolls[addDesktopButtonIndex] + Math.round(
mAddDesktopButton.getGridTranslationX());
newPageScrolls[addDesktopButtonIndex] + mAddDesktopButton.getScrollAdjustment(
showAsGrid);
}
int lastTaskScroll = getLastTaskScroll(clearAllScroll, clearAllWidth);