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:
Jan Althaus
2019-04-15 09:34:18 +02:00
parent b066ba1699
commit 8cccf29fbf

View File

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