diff options
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsStore.java')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsStore.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsStore.java b/src/com/android/launcher3/allapps/AllAppsStore.java index cf0f2a3fe..52d7d28e8 100644 --- a/src/com/android/launcher3/allapps/AllAppsStore.java +++ b/src/com/android/launcher3/allapps/AllAppsStore.java @@ -30,6 +30,7 @@ import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Set; +import java.util.function.Consumer; /** * A utility class to maintain the collection of all apps. @@ -140,7 +141,7 @@ public class AllAppsStore { }); } - private void updateAllIcons(IconAction action) { + private void updateAllIcons(Consumer<BubbleTextView> action) { for (int i = mIconContainers.size() - 1; i >= 0; i--) { ViewGroup parent = mIconContainers.get(i); int childCount = parent.getChildCount(); @@ -148,7 +149,7 @@ public class AllAppsStore { for (int j = 0; j < childCount; j++) { View child = parent.getChildAt(j); if (child instanceof BubbleTextView) { - action.apply((BubbleTextView) child); + action.accept((BubbleTextView) child); } } } @@ -157,8 +158,4 @@ public class AllAppsStore { public interface OnUpdateListener { void onAppsUpdated(); } - - public interface IconAction { - void apply(BubbleTextView icon); - } } |