Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb8151ea authored by Aarthi Balachander's avatar Aarthi Balachander Committed by android-build-merger
Browse files

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

am: 04eb2913

Change-Id: Ic057bd31672128c6a5028b2663f14814efde5384
parents 1e85fd31 04eb2913
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;
        }