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

Commit f37fce51 authored by Adrian Roos's avatar Adrian Roos
Browse files

DirectReply: Show bouncer when occluded

Fixes a bug where Direct Reply would not work when the
lockscreen is occluded.

Change-Id: I064f0367b19ea3572e7bafff7ae532baddbfbedb
Merged-In: I064f0367b19ea3572e7bafff7ae532baddbfbedb
Fixes: 32558539
Test: Open navigation, lock phone, turn phone on, direct reply to a notification
parent 52a9e0e1
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -2913,7 +2913,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,

        runPostCollapseRunnables();
        setInteracting(StatusBarManager.WINDOW_STATUS_BAR, false);
        showBouncer();
        showBouncerIfKeyguard();
        recomputeDisableFlags(true /* animate */);

        // Trimming will happen later if Keyguard is showing - doing it here might cause a jank in
@@ -4438,12 +4438,16 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
        return false;
    }

    private void showBouncer() {
    private void showBouncerIfKeyguard() {
        if (mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED) {
            showBouncer();
        }
    }

    private void showBouncer() {
        mWaitingForKeyguardExit = mStatusBarKeyguardViewManager.isShowing();
        mStatusBarKeyguardViewManager.dismiss();
    }
    }

    private void instantExpandNotificationsPanel() {

@@ -4541,7 +4545,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
    public void onTrackingStopped(boolean expand) {
        if (mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED) {
            if (!expand && !mUnlockMethodCache.canSkipBouncer()) {
                showBouncer();
                showBouncerIfKeyguard();
            }
        }
    }
@@ -4632,7 +4636,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                || !mShowLockscreenNotifications || mFalsingManager.shouldEnforceBouncer();
        if (isLockscreenPublicMode() && fullShadeNeedsBouncer) {
            mLeaveOpenOnKeyguardHide = true;
            showBouncer();
            showBouncerIfKeyguard();
            mDraggedDownRow = row;
            mPendingRemoteInputView = null;
        } else {