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

Commit 335b6c86 authored by Jovana Knezevic's avatar Jovana Knezevic Committed by Android (Google) Code Review
Browse files

Merge "Adding null check for the case when user switcher is disabled (for example in retail mode)."

parents 1bbcd27a 1aa629cd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -491,6 +491,10 @@ public class CarStatusBar extends StatusBar implements
    @Override
    public void onStateChanged(int newState) {
        super.onStateChanged(newState);
        if (mFullscreenUserSwitcher == null) {
            return; // Not using the full screen user switcher.
        }

        if (newState == StatusBarState.FULLSCREEN_USER_SWITCHER) {
            if (!mFullscreenUserSwitcher.isVisible()) {
                // Current execution path continues to set state after this, thus we deffer the