Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e935760f authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "Tweak bouncer showing on swipe up" into main

parents f4883225 2531d137
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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 */);