Merge "boost starred people to at least high importance" into nyc-dev am: 8e5d7413b8
am: 9f7067bb80
* commit '9f7067bb80b79396992b719ac46e8ab47e00ff10':
boost starred people to at least high importance
Change-Id: Ie452e76ad683e916699d9bfa4ee6d687b6d5d961
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