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

Commit 82bccd7f authored by Chris Wren's avatar Chris Wren Committed by android-build-merger
Browse files

Merge "boost starred people to at least high importance" into nyc-dev am: 8e5d7413 am: 6c751b2e

am: e8491bf8

* commit 'e8491bf8':
  boost starred people to at least high importance

Change-Id: I5b6c7d4a4b6c67d1d7f659b95252ad4e406dc46c
parents 448b67ee e8491bf8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -318,8 +318,12 @@ 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());
        }
    }