Skip to content

Commit 0e767b2

Browse files
dsandlerAndroid Git Automerger
authored andcommitted
am 5c53388: Merge "Make dismissKeyguardLw use KeyguardViewMediator.dismiss()." into jb-mr1-lockscreen-dev
* commit '5c533884ead3bb8a8e2e4e8d79587a81dbe31700': Make dismissKeyguardLw use KeyguardViewMediator.dismiss().
2 parents 27ed0c2 + 5c53388 commit 0e767b2

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)