diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java index e8affd1..d4d2b9d 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java @@ -164,12 +164,18 @@ public class ProfileManagerService extends SystemService { } } + @Override + public void onBootPhase(int phase) { + if (phase == PHASE_ACTIVITY_MANAGER_READY) { + bindKeyguard(); + } + } + private void initialize() { initialize(false); } private void initialize(boolean skipFile) { - bindKeyguard(); mTriggerHelper = new ProfileTriggerHelper(mContext, mHandler, this); mProfiles = new HashMap(); mProfileNames = new HashMap();