Merge "boost starred people to at least high importance" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8e5d7413b8
@@ -318,8 +318,12 @@ public final class NotificationRecord {
|
|||||||
|
|
||||||
public void setContactAffinity(float contactAffinity) {
|
public void setContactAffinity(float contactAffinity) {
|
||||||
mContactAffinity = contactAffinity;
|
mContactAffinity = contactAffinity;
|
||||||
|
if (mImportance < IMPORTANCE_HIGH &&
|
||||||
|
mContactAffinity >= ValidateNotificationPeople.STARRED_CONTACT) {
|
||||||
|
setImportance(IMPORTANCE_HIGH, getPeopleExplanation());
|
||||||
|
}
|
||||||
if (mImportance < IMPORTANCE_DEFAULT &&
|
if (mImportance < IMPORTANCE_DEFAULT &&
|
||||||
mContactAffinity > ValidateNotificationPeople.VALID_CONTACT) {
|
mContactAffinity >= ValidateNotificationPeople.VALID_CONTACT) {
|
||||||
setImportance(IMPORTANCE_DEFAULT, getPeopleExplanation());
|
setImportance(IMPORTANCE_DEFAULT, getPeopleExplanation());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user