OSDN Git Service

Add missing callback to StatusBarService for inline reply
authorAmith Yamasani <yamasani@google.com>
Thu, 8 Feb 2018 21:55:59 +0000 (13:55 -0800)
committerAmith Yamasani <yamasani@google.com>
Thu, 8 Feb 2018 21:55:59 +0000 (13:55 -0800)
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

packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java

index f25379a..3c480d8 100644 (file)
@@ -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
+                }
             }
         });