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

Commit c6f53ea9 authored by Tony Mak's avatar Tony Mak
Browse files

Smart actions and replies feature should not be guarded by

... AUTO_DEMOTE_NOTIFICATIONS

Test: Found smart suggestions in notification again

BUG: 119122162
Change-Id: Iee8e559e02e91f0b3045d72f752741d53536b0c8
parent 50619770
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;