Merge "AOD: Hide SIM PIN entry while dozing" into oc-dr1-dev

This commit is contained in:
TreeHugger Robot
2017-06-30 16:54:32 +00:00
committed by Android (Google) Code Review

View File

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