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

Commit cb2f88ba authored by Christian Göllner's avatar Christian Göllner
Browse files

Remove behavior that closes the notification/qs panel when tapping on an empty area.

Test: Manually on device
Bug: 202900378
Fixes: 202900378
Change-Id: I0ea9393175af24bf60526b4b5e7d08b893c9ffa1
parent d43efc90
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -3262,12 +3262,6 @@ public class NotificationPanelViewController extends PanelViewController {
                    mStatusBarStateController.setState(KEYGUARD);
                }
                return true;
            case StatusBarState.SHADE:

                // This gets called in the middle of the touch handling, where the state is still
                // that we are tracking the panel. Collapse the panel after this is done.
                mView.post(mPostCollapseRunnable);
                return false;
            default:
                return true;
        }
+0 −8
Original line number Diff line number Diff line
@@ -928,7 +928,6 @@ public abstract class PanelViewController {

    private void abortAnimations() {
        cancelHeightAnimator();
        mView.removeCallbacks(mPostCollapseRunnable);
        mView.removeCallbacks(mFlingCollapseRunnable);
    }

@@ -1105,13 +1104,6 @@ public abstract class PanelViewController {
        return onMiddleClicked();
    }

    protected final Runnable mPostCollapseRunnable = new Runnable() {
        @Override
        public void run() {
            collapse(false /* delayed */, 1.0f /* speedUpFactor */);
        }
    };

    protected abstract boolean onMiddleClicked();

    protected abstract boolean isDozing();