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

Commit 44f9e5a5 authored by lumark's avatar lumark Committed by Selim Cinek
Browse files

Fix Panel position may not update when device screen off / on quickly.

Due to framework side will not callback onScreenTurningOn() when device screen off / on quickly,
So NotificationPanel will not called onScreenTurningOn to update panel position.

There is also a potential issue for cancel touch will be ignored when touch disable
in onFinishedGoingToSleep().

Let ACTION_CANCEL can pass even touch disable to recover Panel position by fling back.

Bug: 79336031
Test: Manual
Change-Id: I45f2fbd8bfef99d86c3d023f07d2fd051d98f083
parent ceeba4f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -252,7 +252,8 @@ public abstract class PanelView extends FrameLayout {

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        if (mInstantExpanding || mTouchDisabled
        if (mInstantExpanding
                || (mTouchDisabled && event.getActionMasked() != MotionEvent.ACTION_CANCEL)
                || (mMotionAborted && event.getActionMasked() != MotionEvent.ACTION_DOWN)) {
            return false;
        }