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

Commit ae800ec4 authored by Roman Birg's avatar Roman Birg Committed by Gerrit Code Review
Browse files

SystemUI: improve one finger notification expansion



Fixes JIRA bug BACON-70.

Sometimes the quick settings ribbon would eat the initial ACTION_DOWN
setting mInitialTouchY in the expand helper, but we are clearly not in a
notification that we can expand here. So only set the initial y point if
we are inside the notification scrollview.

Change-Id: I628553ac15cc6b4ee3c682fe46bd1d96c6bc154d
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
(cherry picked from commit 9584ba55)
parent 89dc83ed
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -411,8 +411,12 @@ public class ExpandHelper implements Gefingerpoken, OnClickListener {
            }

            case MotionEvent.ACTION_DOWN:
                mWatchingForPull = (isInside(mScrollView, x, y) || mForcedOneFinger);
                final boolean inside = isInside(mScrollView, x, y);
                mWatchingForPull = (inside || mForcedOneFinger);
                mLastMotionY = y;
                if (inside) {
                    mInitialTouchY = y;
                }
                break;

            case MotionEvent.ACTION_CANCEL: