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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user