Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe158fab authored by Steven Ng's avatar Steven Ng Committed by Android (Google) Code Review
Browse files

Merge "Filter out potential null widget item from recommended widgets" into sc-dev

parents 0a74a35a 074f8320
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.stream.Collectors;
@@ -224,6 +225,7 @@ public class PopupDataProvider implements NotificationListener.NotificationsChan
                .map(recommendedWidget -> allWidgetItems.get(
                        new ComponentKey(recommendedWidget.getTargetComponent(),
                                recommendedWidget.user)))
                .filter(Objects::nonNull)
                .collect(Collectors.toList());
    }