Merge "Ignore revealKeyguardIfBouncerPrepared request if Bouncer is null." into rvc-dev am: 56669d830c

Change-Id: Ic9accb3e04cac8f47d86ec0a1582a9655321bd61
This commit is contained in:
TreeHugger Robot
2020-04-24 22:34:41 +00:00
committed by Automerger Merge Worker

View File

@@ -346,6 +346,13 @@ public class CarKeyguardViewController extends OverlayViewController implements
private void revealKeyguardIfBouncerPrepared() {
int reattemptDelayMillis = 50;
Runnable revealKeyguard = () -> {
if (mBouncer == null) {
if (DEBUG) {
Log.d(TAG, "revealKeyguardIfBouncerPrepared: revealKeyguard request is ignored "
+ "since the Bouncer has not been initialized yet.");
}
return;
}
if (!mBouncer.inTransit() || !mBouncer.isSecure()) {
getLayout().setVisibility(View.VISIBLE);
} else {