From 24ff30677d63f1e0d0f0e946c192c4da85d8c3b1 Mon Sep 17 00:00:00 2001 From: Govinda Wasserman Date: Fri, 19 Apr 2019 09:42:53 -0400 Subject: [PATCH] Adds Assistant invocation type to home long press. This allows both the logging of the Assistant invocation type and for the Assistant to change its behavior based on the invocation type. Test: Checked value is added to bundle BUG:128982146 Change-Id: I1376f4b20fdb82e73d80a396f1e148c1a5fba01e --- .../systemui/statusbar/phone/NavigationBarFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java index 4d2b56c5e81a8..95d51da134db0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java @@ -715,7 +715,10 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback } mNavigationBarView.onNavigationButtonLongPress(v); mMetricsLogger.action(MetricsEvent.ACTION_ASSIST_LONG_PRESS); - mAssistManager.startAssist(new Bundle() /* args */); + Bundle args = new Bundle(); + args.putInt( + AssistManager.INVOCATION_TYPE_KEY, AssistManager.INVOCATION_HOME_BUTTON_LONG_PRESS); + mAssistManager.startAssist(args); mStatusBar.awakenDreams(); if (mNavigationBarView != null) {