diff options
| author | 2018-11-06 20:02:08 +0000 | |
|---|---|---|
| committer | 2018-11-06 20:02:54 +0000 | |
| commit | c6f53ea93eca3baf32d725879067c774e62b345d (patch) | |
| tree | e5fddf221636573ad6dae6797ac57d0312dac209 | |
| parent | 50619770805796dbec93eb9378c8dc21f6f66f7d (diff) | |
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
| -rw-r--r-- | packages/ExtServices/src/android/ext/services/notification/Assistant.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/ExtServices/src/android/ext/services/notification/Assistant.java b/packages/ExtServices/src/android/ext/services/notification/Assistant.java index ddc00e37b8dc..11366848874a 100644 --- a/packages/ExtServices/src/android/ext/services/notification/Assistant.java +++ b/packages/ExtServices/src/android/ext/services/notification/Assistant.java @@ -236,13 +236,13 @@ public class Assistant extends NotificationAssistantService { @NonNull ArrayList<CharSequence> smartReplies) { Bundle signals = new Bundle(); + 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 (!smartActions.isEmpty()) { - signals.putParcelableArrayList(Adjustment.KEY_SMART_ACTIONS, smartActions); - } - if (!smartReplies.isEmpty()) { - signals.putCharSequenceArrayList(Adjustment.KEY_SMART_REPLIES, smartReplies); - } if (mNotificationCategorizer.shouldSilence(entry)) { final int importance = entry.getImportance() < IMPORTANCE_LOW ? entry.getImportance() : IMPORTANCE_LOW; |