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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user