AOD: Hide SIM PIN entry while dozing

Fixes an issue where the SIM pin entry was still showing
on AOD instead of being hidden while the device is off.

Change-Id: I1f0493b22818a817c2e519f7b4aa1c1df4be9a20
Test: Enable SIM PIN, reboot device, ensure that SIM PIN entry dialog is not showing on AOD.
Fixes: 62657496
This commit is contained in:
Adrian Roos
2017-06-29 14:09:52 +02:00
parent 68e459918a
commit 41eecffa01

View File

@@ -152,7 +152,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
* {@link KeyguardBouncer#needsFullscreenBouncer()}.
*/
protected void showBouncerOrKeyguard(boolean hideBouncerWhenShowing) {
if (mBouncer.needsFullscreenBouncer()) {
if (mBouncer.needsFullscreenBouncer() && !mDozing) {
// The keyguard might be showing (already). So we need to hide it.
mStatusBar.hideKeyguard();
@@ -258,8 +258,11 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
}
public void setDozing(boolean dozing) {
mDozing = dozing;
updateStates();
if (mDozing != dozing) {
mDozing = dozing;
reset(dozing /* hideBouncerWhenShowing */);
updateStates();
}
}
public void onScreenTurnedOff() {