diff options
author | 2018-06-07 15:59:53 -0700 | |
---|---|---|
committer | 2018-06-07 15:59:53 -0700 | |
commit | 04eb29135096913c3f00805a43e4c04eea9cff1e (patch) | |
tree | 321b5bd97332e3d56c94330d42ee73edab8e80f8 /packages/SystemUI/src | |
parent | c5f794932fbac57d20f3ba35fa78d264eeafa126 (diff) | |
parent | 36fc3b1a530e3cca4f4c78838f4123ffa77f405d (diff) |
Merge "Show the bouncer at start up if the headless user flag is set" into pi-dev
am: 36fc3b1a53
Change-Id: I9d4fd38bdfa3c605583436cda9f331148113d551
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/car/FullscreenUserSwitcher.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/car/FullscreenUserSwitcher.java b/packages/SystemUI/src/com/android/systemui/statusbar/car/FullscreenUserSwitcher.java index ba265d877a8d..f78e3912ad91 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/car/FullscreenUserSwitcher.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/car/FullscreenUserSwitcher.java @@ -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; } |