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

Commit 110514e8 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Fixed a bug where longpress was not possible in landscape am: 197823da

am: 767d63f7

* commit '767d63f7':
  Fixed a bug where longpress was not possible in landscape
parents 557fc241 767d63f7
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -274,10 +274,7 @@ public class SwipeHelper implements Gefingerpoken {
                            mWatchLongPress = new Runnable() {
                                @Override
                                public void run() {
                                    float pos = getPos(ev);
                                    float delta = pos - mInitialTouchPos;
                                    if (mCurrView != null && !mLongPressSent
                                            && Math.abs(delta) < mPagingTouchSlop) {
                                    if (mCurrView != null && !mLongPressSent) {
                                        mLongPressSent = true;
                                        mCurrView.sendAccessibilityEvent(
                                                AccessibilityEvent.TYPE_VIEW_LONG_CLICKED);
+8 −0
Original line number Diff line number Diff line
@@ -2063,6 +2063,14 @@ public class NotificationStackScrollLayout extends ViewGroup
        }
    }

    @Override
    public void requestDisallowInterceptTouchEvent(boolean disallowIntercept) {
        super.requestDisallowInterceptTouchEvent(disallowIntercept);
        if (disallowIntercept) {
            mSwipeHelper.removeLongPressCallback();
        }
    }

    private void onViewRemovedInternal(View child) {
        if (mChangePositionInProgress) {
            // This is only a position change, don't do anything special