Merge "Show the bouncer at start up if the headless user flag is set" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-06-07 21:42:59 +00:00
committed by Android (Google) Code Review

View File

@@ -19,6 +19,8 @@ package com.android.systemui.statusbar.car;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.content.pm.UserInfo;
import android.util.Log;
import android.view.View;
import android.view.ViewStub;
@@ -60,6 +62,11 @@ public class FullscreenUserSwitcher {
}
public void show() {
// On a switch from the system user, don't show the user switcher
if (mUserManagerHelper.isHeadlessSystemUser() && mUserManagerHelper
.userIsSystemUser(mUserManagerHelper.getForegroundUserInfo())) {
return;
}
if (mShowing) {
return;
}