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

Commit d17a951d authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Removing user locked change in LauncherAppState

The process will crash anyway when loading sharedPreference. So
we do not need any extra check to cause the same crash.

Bug: 134094839
Change-Id: Icfd4406ff601d6b9a75bd95ddcecb9869f7e7fa2
parent 164ebb2e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -68,9 +68,6 @@ public class LauncherAppState {
    }

    private LauncherAppState(Context context) {
        if (!UserManagerCompat.getInstance(context).isUserUnlocked(Process.myUserHandle())) {
            throw new RuntimeException("LauncherAppState should not start in direct boot mode");
        }
        if (getLocalProvider(context) == null) {
            throw new RuntimeException(
                    "Initializing LauncherAppState in the absence of LauncherProvider");