Changing min sdk to 25

Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
This commit is contained in:
Sunny Goyal
2019-01-25 15:10:18 -08:00
parent 9752705e92
commit 8c48d8bea6
55 changed files with 283 additions and 753 deletions
@@ -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);
}
}