Merge "Disable launching assist during setup" into mnc-dev

This commit is contained in:
Maurice Lam
2015-07-29 18:25:16 +00:00
committed by Android (Google) Code Review

View File

@@ -3114,6 +3114,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
private void launchAssistAction(String hint, int deviceId) {
sendCloseSystemWindows(SYSTEM_DIALOG_REASON_ASSIST);
if (!isUserSetupComplete()) {
// Disable opening assist window during setup
return;
}
Bundle args = null;
if (deviceId > Integer.MIN_VALUE) {
args = new Bundle();