Merge "boost starred people to at least high importance" into nyc-dev am: 8e5d7413b8 am: 6c751b2e60
am: e8491bf8c5
* commit 'e8491bf8c57c36985a73a60cf3f22f30715ab6ed':
boost starred people to at least high importance
Change-Id: I5b6c7d4a4b6c67d1d7f659b95252ad4e406dc46c
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user