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

Commit a596ff87 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Show user switcher if guest is enabled

even if there's only one user.

Bug: 15549064
Change-Id: Ib9bc5e6cdc6f2655e44ec0a10a701dd39389e648
parent 45c9ef20
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -882,7 +882,9 @@ public class UserManager {
                ++switchableUserCount;
            }
        }
        return switchableUserCount > 1;
        final boolean guestEnabled = Settings.Global.getInt(mContext.getContentResolver(),
                Settings.Global.GUEST_USER_ENABLED, 0) == 1;
        return switchableUserCount > 1 || guestEnabled;
    }

    /**