Update Ranking's equal method

Include check for whether mVisuallyInterruptive has changed

Test: atest BubbleDataTest
Change-Id: I5c4706667e6ca4cde44ef3671daa24afaf2b14f3
This commit is contained in:
Beverly
2019-12-16 13:29:08 -05:00
committed by Beverly Tai
parent fc2aa7d600
commit e1541e7ec9
2 changed files with 3 additions and 1 deletions

View File

@@ -1895,7 +1895,8 @@ public abstract class NotificationListenerService extends Service {
&& ((mSmartActions == null ? 0 : mSmartActions.size())
== (other.mSmartActions == null ? 0 : other.mSmartActions.size()))
&& Objects.equals(mSmartReplies, other.mSmartReplies)
&& Objects.equals(mCanBubble, other.mCanBubble);
&& Objects.equals(mCanBubble, other.mCanBubble)
&& Objects.equals(mVisuallyInterruptive, other.mVisuallyInterruptive);
}
}

View File

@@ -76,6 +76,7 @@ public class RankingBuilder {
mSmartActions = copyList(ranking.getSmartActions());
mSmartReplies = copyList(ranking.getSmartReplies());
mCanBubble = ranking.canBubble();
mIsVisuallyInterruptive = ranking.visuallyInterruptive();
}
public Ranking build() {