Skip to content

Commit

Permalink
profiles: Don't bind the keyguard until ActivityManager is up
Browse files Browse the repository at this point in the history
Change-Id: I2f349d00c197cf5c4a492fb0892b3edd71479ea4
  • Loading branch information
ryzenforce990 authored and hyperb1iss committed Aug 19, 2015
1 parent 8b5a4d9 commit 435e2f3
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -164,12 +164,18 @@ private void bindKeyguard() {
}
}

@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<UUID, Profile>();
mProfileNames = new HashMap<String, UUID>();
Expand Down

0 comments on commit 435e2f3

Please sign in to comment.