Always send Adjustment for importance
Without this adjustment, we can't calculate accurate quality metrics for the NotificationCategorizer. Test: make, manual Fixes: 130415410 Change-Id: I12fb792b487e470d333c88032951ea4b47a2554b
This commit is contained in:
@@ -272,6 +272,9 @@ public class Assistant extends NotificationAssistantService {
|
||||
final int importance = entry.getImportance() < IMPORTANCE_LOW
|
||||
? entry.getImportance() : IMPORTANCE_LOW;
|
||||
signals.putInt(KEY_IMPORTANCE, importance);
|
||||
} else {
|
||||
// Even if no change is made, send an identity adjustment for metric logging.
|
||||
signals.putInt(KEY_IMPORTANCE, entry.getImportance());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user