From d17a951df84abf3b66f9c16d0f736d150c99b9d8 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 31 May 2019 16:02:23 -0700 Subject: [PATCH] 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 --- src/com/android/launcher3/LauncherAppState.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index dc275161d4..d07638a5c1 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -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");