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

Commit 7e431621 authored by Chris Wren's avatar Chris Wren
Browse files

boost starred people to at least high importance

Bug: 28949659
Change-Id: If604062a282db5db463642315a8fa5f7cd6e597c
parent 7c17e70f
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());
        }
    }