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

Commit a9e4db58 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Smart actions and replies feature should not be guarded by ... AUTO_DEMOTE_NOTIFICATIONS"

parents 15ef6e23 c6f53ea9
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -236,13 +236,13 @@ public class Assistant extends NotificationAssistantService {
            @NonNull ArrayList<CharSequence> smartReplies) {
        Bundle signals = new Bundle();

        if (AUTO_DEMOTE_NOTIFICATIONS) {
        if (!smartActions.isEmpty()) {
            signals.putParcelableArrayList(Adjustment.KEY_SMART_ACTIONS, smartActions);
        }
        if (!smartReplies.isEmpty()) {
            signals.putCharSequenceArrayList(Adjustment.KEY_SMART_REPLIES, smartReplies);
        }
        if (AUTO_DEMOTE_NOTIFICATIONS) {
            if (mNotificationCategorizer.shouldSilence(entry)) {
                final int importance = entry.getImportance() < IMPORTANCE_LOW
                        ? entry.getImportance() : IMPORTANCE_LOW;