diff options
| author | 2020-04-16 09:37:34 -0700 | |
|---|---|---|
| committer | 2020-04-16 13:00:38 -0700 | |
| commit | 43bde21c87cef5ec3a33c2d4776dba57b51f5e4b (patch) | |
| tree | 3746bd035b07bb4efaa7bc15c9ba812d7124c630 | |
| parent | 31b94bfc1e3dadf9794641c738ced9eb71617dc7 (diff) | |
Use USER_LIFECYCLE_EVENT_TYPE_SWITCHING to detect user switched event.
SWITCHING and SWITCHED would be sent consecutively on the same thread,
and so creating a USER_LIFECYCLE_EVENT_TYPE_SWITCHED event has been
determined to be redundant.
See b/153745017 for more details.
Bug: 153379372
Test: Manual
Change-Id: Iaabb7a8b31f7a5e4a46cbe4d7ea683b06756404e
| -rw-r--r-- | packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java b/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java index a4bb916b16ea..60ee19eec25f 100644 --- a/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java +++ b/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java @@ -92,7 +92,7 @@ public class CarKeyguardViewController extends OverlayViewController implements } }; 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(); } }; |