Merge "Adds Assistant invocation type to home long press." into qt-dev

am: 18184f9c86

Change-Id: I280bf6fcf921f79f2cd11b4536ddbfeaf31aa502
This commit is contained in:
Govinda Wasserman
2019-04-22 05:40:29 -07:00
committed by android-build-merger

View File

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