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
This commit is contained in:
Tony Mak
2018-11-06 20:02:08 +00:00
parent 5061977080
commit c6f53ea93e

View File

@@ -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;