Skip to content

Commit 5c53388

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Make dismissKeyguardLw use KeyguardViewMediator.dismiss()." into jb-mr1-lockscreen-dev
2 parents 4181e8a + 1ce8043 commit 5c53388

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)