File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
policy/src/com/android/internal/policy/impl/keyguard Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 3535import android .util .Log ;
3636import android .view .WindowManager ;
3737
38- import com .android .internal .policy .impl .keyguard .KeyguardSecurityCallback .OnDismissAction ;
38+ import com .android .internal .policy .impl .keyguard .KeyguardHostView .OnDismissAction ;
3939import com .android .internal .widget .LockPatternUtils ;
4040
4141import java .util .List ;
Original file line number Diff line number Diff line change 5353import android .widget .RemoteViews .OnClickHandler ;
5454
5555import com .android .internal .R ;
56- import com .android .internal .policy .impl .keyguard .KeyguardSecurityCallback .OnDismissAction ;
5756import com .android .internal .policy .impl .keyguard .KeyguardSecurityModel .SecurityMode ;
5857import com .android .internal .widget .LockPatternUtils ;
5958
@@ -115,6 +114,11 @@ public class KeyguardHostView extends KeyguardViewBase {
115114 void userActivity ();
116115 }
117116
117+ /*package*/ interface OnDismissAction {
118+ /* returns true if the dismiss should be deferred */
119+ boolean onDismiss ();
120+ }
121+
118122 public KeyguardHostView (Context context ) {
119123 this (context , null );
120124 }
Original file line number Diff line number Diff line change 1515 */
1616package com .android .internal .policy .impl .keyguard ;
1717
18- public interface KeyguardSecurityCallback {
19-
20- /*package*/ interface OnDismissAction {
18+ import com .android .internal .policy .impl .keyguard .KeyguardHostView .OnDismissAction ;
2119
22- /* returns true if the dismiss should be deferred */
23- boolean onDismiss ();
24- }
20+ public interface KeyguardSecurityCallback {
2521
2622 /**
2723 * Dismiss the given security screen.
Original file line number Diff line number Diff line change @@ -567,6 +567,8 @@ public void onScreenTurnedOff(int why) {
567567 mScreenOn = false ;
568568 if (DEBUG ) Log .d (TAG , "onScreenTurnedOff(" + why + ")" );
569569
570+ mKeyguardDonePending = false ;
571+
570572 // Lock immediately based on setting if secure (user has a pin/pattern/password).
571573 // This also "locks" the device when not secure to provide easy access to the
572574 // camera while preventing unwanted input.
@@ -1226,6 +1228,7 @@ private void handleShow(Bundle options) {
12261228
12271229 mKeyguardViewManager .show (options );
12281230 mShowing = true ;
1231+ mKeyguardDonePending = false ;
12291232 updateActivityLockScreenState ();
12301233 adjustStatusBarLocked ();
12311234 userActivity ();
@@ -1261,6 +1264,7 @@ private void handleHide() {
12611264
12621265 mKeyguardViewManager .hide ();
12631266 mShowing = false ;
1267+ mKeyguardDonePending = false ;
12641268 updateActivityLockScreenState ();
12651269 adjustStatusBarLocked ();
12661270 }
You can’t perform that action at this time.
0 commit comments