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

Commit f156ab3f authored by Chris Wren's avatar Chris Wren Committed by Android (Google) Code Review
Browse files

Merge "Revert "boost starred people to at least high importance"" into nyc-dev

parents 7f9e4d13 c977f81d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -318,12 +318,8 @@ public final class NotificationRecord {

    public void setContactAffinity(float contactAffinity) {
        mContactAffinity = contactAffinity;
        if (mImportance < IMPORTANCE_HIGH &&
                mContactAffinity >= ValidateNotificationPeople.STARRED_CONTACT) {
            setImportance(IMPORTANCE_HIGH, getPeopleExplanation());
        }
        if (mImportance < IMPORTANCE_DEFAULT &&
                mContactAffinity >= ValidateNotificationPeople.VALID_CONTACT) {
                mContactAffinity > ValidateNotificationPeople.VALID_CONTACT) {
            setImportance(IMPORTANCE_DEFAULT, getPeopleExplanation());
        }
    }