From: Amith Yamasani Date: Thu, 8 Feb 2018 21:55:59 +0000 (-0800) Subject: Add missing callback to StatusBarService for inline reply X-Git-Tag: android-x86-9.0-r1~218^2~35^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=129b48181ed9e8368c6e8ebc2c0b281e1492b368;p=android-x86%2Fframeworks-base.git Add missing callback to StatusBarService for inline reply SystemUI calls back to StatusBarService when inline reply is sent. Bug: 72067231 Test: Receive a hangouts message and reply inline dumpsys usagestats should show a USER_INTERACTION event Change-Id: Ie83297c0e54f09a4e90601fe57e1862453d3d125 --- diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java index f25379ab0b22..3c480d80dea8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java @@ -299,6 +299,11 @@ public class NotificationRemoteInputManager implements Dumpable { } }, REMOTE_INPUT_KEPT_ENTRY_AUTO_CANCEL_DELAY); } + try { + mBarService.onNotificationDirectReplied(entry.notification.getKey()); + } catch (RemoteException e) { + // Nothing to do, system going down + } } });