Merge "Fix invalid bubble predicate once and for all" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-25 08:25:04 +00:00
committed by Android (Google) Code Review

View File

@@ -368,6 +368,10 @@ public class BubbleData {
final Predicate<Bubble> invalidBubblesFromPackage = bubble -> {
final boolean bubbleIsFromPackage = packageName.equals(bubble.getPackageName());
final boolean isShortcutBubble = bubble.hasMetadataShortcutId();
if (!bubbleIsFromPackage || !isShortcutBubble) {
return false;
}
final boolean hasShortcutIdAndValidShortcut =
bubble.hasMetadataShortcutId()
&& bubble.getShortcutInfo() != null