Add debug logs to folder open anim

Bug: 383526431
Flag: EXEMPT logs only
Test: None
Change-Id: Ib18d63e7f8ab194f8fda74aa99d99c9aa27f5f19
This commit is contained in:
Sihua Ma
2025-01-08 17:28:36 +00:00
parent a1037f63a7
commit a5d096b922
3 changed files with 28 additions and 0 deletions
@@ -58,6 +58,7 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.ToIntFunction;
import java.util.stream.Collectors;
@@ -531,6 +532,16 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> implements Cli
verifyVisibleHighResIcons(getCurrentPage() + 1);
}
int getTotalChildCount() {
AtomicInteger count = new AtomicInteger();
iterateOverItems((i, v) -> {
count.getAndIncrement();
return false;
});
return count.get();
}
/**
* Ensures that all the icons on the given page are of high-res
*/