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

Commit e1541e7e authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Update Ranking's equal method

Include check for whether mVisuallyInterruptive has changed

Test: atest BubbleDataTest
Change-Id: I5c4706667e6ca4cde44ef3671daa24afaf2b14f3
parent fc2aa7d6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
        }
    }

+1 −0
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ public class RankingBuilder {
        mSmartActions = copyList(ranking.getSmartActions());
        mSmartReplies = copyList(ranking.getSmartReplies());
        mCanBubble = ranking.canBubble();
        mIsVisuallyInterruptive = ranking.visuallyInterruptive();
    }

    public Ranking build() {