Loading policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +5 −3 Original line number Diff line number Diff line Loading @@ -421,8 +421,8 @@ public class KeyguardHostView extends KeyguardViewBase { void showPrimarySecurityScreen(boolean turningOff) { SecurityMode securityMode = mSecurityModel.getSecurityMode(); if (DEBUG) Log.v(TAG, "showPrimarySecurityScreen(turningOff=" + turningOff + ")"); if (!turningOff && KeyguardUpdateMonitor.getInstance(mContext).isAlternateUnlockEnabled() && !KeyguardUpdateMonitor.getInstance(mContext).getIsFirstBoot()) { if (!turningOff && KeyguardUpdateMonitor.getInstance(mContext).isAlternateUnlockEnabled()) { // If we're not turning off, then allow biometric alternate. // We'll reload it when the device comes back on. securityMode = mSecurityModel.getAlternateFor(securityMode); Loading Loading @@ -498,7 +498,6 @@ public class KeyguardHostView extends KeyguardViewBase { // If the alternate unlock was suppressed, it can now be safely // enabled because the user has left keyguard. KeyguardUpdateMonitor.getInstance(mContext).setAlternateUnlockEnabled(true); KeyguardUpdateMonitor.getInstance(mContext).setIsFirstBoot(false); // If there's a pending runnable because the user interacted with a widget // and we're leaving keyguard, then run it. Loading Loading @@ -710,6 +709,9 @@ public class KeyguardHostView extends KeyguardViewBase { @Override public void onScreenTurnedOff() { if (DEBUG) Log.d(TAG, "screen off, instance " + Integer.toHexString(hashCode())); // Once the screen turns off, we no longer consider this to be first boot and we want the // biometric unlock to start next time keyguard is shown. KeyguardUpdateMonitor.getInstance(mContext).setAlternateUnlockEnabled(true); saveStickyWidgetIndex(); showPrimarySecurityScreen(true); getSecurityView(mCurrentSecuritySelection).onPause(); Loading policy/src/com/android/internal/policy/impl/keyguard/KeyguardUpdateMonitor.java +0 −9 Original line number Diff line number Diff line Loading @@ -200,7 +200,6 @@ public class KeyguardUpdateMonitor { } } }; private boolean mIsFirstBoot; /** * When we receive a Loading Loading @@ -778,12 +777,4 @@ public class KeyguardUpdateMonitor { || simState == IccCardConstants.State.PUK_REQUIRED || simState == IccCardConstants.State.PERM_DISABLED); } public void setIsFirstBoot(boolean b) { mIsFirstBoot = b; } public boolean getIsFirstBoot() { return mIsFirstBoot; } } policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java +0 −1 Original line number Diff line number Diff line Loading @@ -522,7 +522,6 @@ public class KeyguardViewMediator { // Disable alternate unlock right after boot until things have settled. mUpdateMonitor.setAlternateUnlockEnabled(false); mUpdateMonitor.setIsFirstBoot(true); doKeyguardLocked(); } Loading Loading
policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +5 −3 Original line number Diff line number Diff line Loading @@ -421,8 +421,8 @@ public class KeyguardHostView extends KeyguardViewBase { void showPrimarySecurityScreen(boolean turningOff) { SecurityMode securityMode = mSecurityModel.getSecurityMode(); if (DEBUG) Log.v(TAG, "showPrimarySecurityScreen(turningOff=" + turningOff + ")"); if (!turningOff && KeyguardUpdateMonitor.getInstance(mContext).isAlternateUnlockEnabled() && !KeyguardUpdateMonitor.getInstance(mContext).getIsFirstBoot()) { if (!turningOff && KeyguardUpdateMonitor.getInstance(mContext).isAlternateUnlockEnabled()) { // If we're not turning off, then allow biometric alternate. // We'll reload it when the device comes back on. securityMode = mSecurityModel.getAlternateFor(securityMode); Loading Loading @@ -498,7 +498,6 @@ public class KeyguardHostView extends KeyguardViewBase { // If the alternate unlock was suppressed, it can now be safely // enabled because the user has left keyguard. KeyguardUpdateMonitor.getInstance(mContext).setAlternateUnlockEnabled(true); KeyguardUpdateMonitor.getInstance(mContext).setIsFirstBoot(false); // If there's a pending runnable because the user interacted with a widget // and we're leaving keyguard, then run it. Loading Loading @@ -710,6 +709,9 @@ public class KeyguardHostView extends KeyguardViewBase { @Override public void onScreenTurnedOff() { if (DEBUG) Log.d(TAG, "screen off, instance " + Integer.toHexString(hashCode())); // Once the screen turns off, we no longer consider this to be first boot and we want the // biometric unlock to start next time keyguard is shown. KeyguardUpdateMonitor.getInstance(mContext).setAlternateUnlockEnabled(true); saveStickyWidgetIndex(); showPrimarySecurityScreen(true); getSecurityView(mCurrentSecuritySelection).onPause(); Loading
policy/src/com/android/internal/policy/impl/keyguard/KeyguardUpdateMonitor.java +0 −9 Original line number Diff line number Diff line Loading @@ -200,7 +200,6 @@ public class KeyguardUpdateMonitor { } } }; private boolean mIsFirstBoot; /** * When we receive a Loading Loading @@ -778,12 +777,4 @@ public class KeyguardUpdateMonitor { || simState == IccCardConstants.State.PUK_REQUIRED || simState == IccCardConstants.State.PERM_DISABLED); } public void setIsFirstBoot(boolean b) { mIsFirstBoot = b; } public boolean getIsFirstBoot() { return mIsFirstBoot; } }
policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java +0 −1 Original line number Diff line number Diff line Loading @@ -522,7 +522,6 @@ public class KeyguardViewMediator { // Disable alternate unlock right after boot until things have settled. mUpdateMonitor.setAlternateUnlockEnabled(false); mUpdateMonitor.setIsFirstBoot(true); doKeyguardLocked(); } Loading