Merge "Use USER_LIFECYCLE_EVENT_TYPE_SWITCHING to detect user switched event." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e5eb16d8a8
@@ -92,7 +92,7 @@ public class CarKeyguardViewController extends OverlayViewController implements
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
private final CarUserManager.UserLifecycleListener mUserLifecycleListener = (e) -> {
|
private final CarUserManager.UserLifecycleListener mUserLifecycleListener = (e) -> {
|
||||||
if (e.getEventType() == CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKED) {
|
if (e.getEventType() == CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING) {
|
||||||
revealKeyguardIfBouncerPrepared();
|
revealKeyguardIfBouncerPrepared();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user