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

am: 8e5d7413b8

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

Change-Id: I40d102f3534558894056b2048c629ca955975ca2
This commit is contained in:
Chris Wren
2016-05-26 23:16:27 +00:00
committed by android-build-merger

View File

@@ -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());
}
}