Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cccf29f authored by Jan Althaus's avatar Jan Althaus
Browse files

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
parent b066ba16
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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());
            }
        }