Add debug logs to folder open anim
Bug: 383526431 Flag: EXEMPT logs only Test: None Change-Id: Ib18d63e7f8ab194f8fda74aa99d99c9aa27f5f19
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user