diff options
| author | 2024-08-23 14:15:45 +0000 | |
|---|---|---|
| committer | 2024-08-23 14:56:30 +0000 | |
| commit | 2531d137b87d51e8e542a7cc54d16fb4d6477817 (patch) | |
| tree | 5717d5c993120dab3cb8a5194ac630402297ecd1 | |
| parent | dc6e3c33fc424fad8ebb6d794afc0a7eff7a3010 (diff) | |
Tweak bouncer showing on swipe up
There is still an edge case that is needed
for SIMs
Fixes: 343327511
Test: manual - race condition when hitting power after
using UDFPS to unlock after tapping notification, test
with sim relocking
Flag: com.android.systemui.relock_with_power_button_immediately
Change-Id: Icf2ceb8f08cea1e13d859adfc719557d49b64ae1
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java index 3dd265bb92da..e3242d13077f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java @@ -2365,9 +2365,14 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { // lock screen where users can use the UDFPS affordance to enter the device mStatusBarKeyguardViewManager.reset(true); } else if (mState == StatusBarState.KEYGUARD - && !mStatusBarKeyguardViewManager.primaryBouncerIsOrWillBeShowing() - && mStatusBarKeyguardViewManager.isSecure()) { - if (!relockWithPowerButtonImmediately()) { + && !mStatusBarKeyguardViewManager.primaryBouncerIsOrWillBeShowing()) { + boolean needsBouncer = mStatusBarKeyguardViewManager.isSecure(); + if (relockWithPowerButtonImmediately()) { + // Only request if SIM bouncer is needed + needsBouncer = mStatusBarKeyguardViewManager.needsFullscreenBouncer(); + } + + if (needsBouncer) { Log.d(TAG, "showBouncerOrLockScreenIfKeyguard, showingBouncer"); if (SceneContainerFlag.isEnabled()) { mStatusBarKeyguardViewManager.showPrimaryBouncer(true /* scrimmed */); |