OSDN Git Service

Keep notification when sending smart reply.
authorKenny Guy <kennyguy@google.com>
Wed, 9 May 2018 08:50:55 +0000 (09:50 +0100)
committerKenny Guy <kennyguy@google.com>
Thu, 17 May 2018 19:16:25 +0000 (20:16 +0100)
commit8cc15d2ebf3cb2e5caaefb984e547b4b3c1249d0
tree570cab576c41a27b778930382c3744e06c543fc0
parente9e5cb3ff4250d5e664283db910e752a146cfd32
Keep notification when sending smart reply.

If an app cancels a notification while we are
sending a smart reply then don't dismiss the
notification.

Bug: 79120026
Test: atest NotificationEntryManagerTest
Test: atest SmartReplyControllerTest
Test: atest statusbar.NotificationListenerTest
Test: atest NotificationRemoteInputManagerTest

Change-Id: Ibbc0014ae0aeb12b58be13c041d720903251490f
12 files changed:
core/java/android/app/Notification.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationEntryManager.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationListener.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java
packages/SystemUI/src/com/android/systemui/statusbar/SmartReplyController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/SmartReplyView.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationEntryManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationListenerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationRemoteInputManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/SmartReplyControllerTest.java