Update Ranking's equal method
Include check for whether mVisuallyInterruptive has changed Test: atest BubbleDataTest Change-Id: I5c4706667e6ca4cde44ef3671daa24afaf2b14f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ public class RankingBuilder {
|
||||
mSmartActions = copyList(ranking.getSmartActions());
|
||||
mSmartReplies = copyList(ranking.getSmartReplies());
|
||||
mCanBubble = ranking.canBubble();
|
||||
mIsVisuallyInterruptive = ranking.visuallyInterruptive();
|
||||
}
|
||||
|
||||
public Ranking build() {
|
||||
|
||||
Reference in New Issue
Block a user