Merge "Introduce mTaskViewCount inside the RecentsView" into main

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2024-12-11 12:36:00 -08:00
commit 4d4eb7d685
2 files changed
+25 -22

No files matched your search

+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;