Merge "Simplifying some view iteration methods" into main

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2025-03-04 18:42:06 -08:00
commit 57cab7794a
16 files changed
+136 -202

No files matched your search

@@ -1191,8 +1191,8 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
* 3) All Apps button
*/
public View getFirstIconMatch(Predicate<ItemInfo> matcher) {
Predicate<ItemInfo> collectionMatcher = ItemInfoMatcher.forFolderMatch(matcher);
return mTaskbarView.getFirstMatch(matcher, collectionMatcher);
View icon = mModelCallbacks.getFirstMatch(matcher, ItemInfoMatcher.forFolderMatch(matcher));
return icon != null ? icon : mTaskbarView.getAllAppsButtonContainer();
}
/**