Merge "Introduce mTaskViewCount inside the RecentsView" into main

This commit is contained in:
Treehugger Robot
2024-12-11 12:36:00 -08:00
committed by Android (Google) Code Review
2 changed files with 25 additions and 22 deletions
+2
View File
@@ -903,12 +903,14 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
@Override
public void onViewAdded(View child) {
super.onViewAdded(child);
mPageScrolls = null;
dispatchPageCountChanged();
}
@Override
public void onViewRemoved(View child) {
super.onViewRemoved(child);
mPageScrolls = null;
runOnPageScrollsInitialized(() -> {
mCurrentPage = validateNewPage(mCurrentPage);
mCurrentScrollOverPage = mCurrentPage;