Merge "Ignore revealKeyguardIfBouncerPrepared request if Bouncer is null." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
56669d830c
@@ -346,6 +346,13 @@ public class CarKeyguardViewController extends OverlayViewController implements
|
|||||||
private void revealKeyguardIfBouncerPrepared() {
|
private void revealKeyguardIfBouncerPrepared() {
|
||||||
int reattemptDelayMillis = 50;
|
int reattemptDelayMillis = 50;
|
||||||
Runnable revealKeyguard = () -> {
|
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()) {
|
if (!mBouncer.inTransit() || !mBouncer.isSecure()) {
|
||||||
getLayout().setVisibility(View.VISIBLE);
|
getLayout().setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user