File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
policy/src/com/android/internal/policy/impl Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3899,14 +3899,18 @@ public boolean inKeyguardRestrictedKeyInputMode() {
38993899 }
39003900
39013901 public void dismissKeyguardLw () {
3902- if (mKeyguardMediator .isDismissable ()) {
3903- if (mKeyguardMediator .isShowing ()) {
3904- mHandler .post (new Runnable () {
3905- public void run () {
3902+ if (mKeyguardMediator .isShowing ()) {
3903+ mHandler .post (new Runnable () {
3904+ public void run () {
3905+ if (mKeyguardMediator .isDismissable ()) {
3906+ // Can we just finish the keyguard straight away?
39063907 mKeyguardMediator .keyguardDone (false , true );
3908+ } else {
3909+ // ask the keyguard to prompt the user to authenticate if necessary
3910+ mKeyguardMediator .dismiss ();
39073911 }
3908- });
3909- }
3912+ }
3913+ });
39103914 }
39113915 }
39123916
You can’t perform that action at this time.
0 commit comments