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
}
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) {