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

Commit 67985dd5 authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am b8bf46b2: Merge "Fixed that app-info longpress was lost on configuration...

am b8bf46b2: Merge "Fixed that app-info longpress was lost on configuration changes." into lmp-preview-dev

* commit 'b8bf46b250c7f299d6fcfe7942fdbfabb688f27a':
  Fixed that app-info longpress was lost on configuration changes.
parents 7336a5d0 eba93365
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@ public class NotificationStackScrollLayout extends ViewGroup
     * motion.
     */
    private int mMaxScrollAfterExpand;
    private OnLongClickListener mLongClickListener;

    /**
     * Should in this touch motion only be scrolling allowed? It's true when the scroller was
@@ -228,6 +229,7 @@ public class NotificationStackScrollLayout extends ViewGroup
        float densityScale = getResources().getDisplayMetrics().density;
        float pagingTouchSlop = ViewConfiguration.get(getContext()).getScaledPagingTouchSlop();
        mSwipeHelper = new SwipeHelper(SwipeHelper.X, this, densityScale, pagingTouchSlop);
        mSwipeHelper.setLongPressListener(mLongClickListener);

        mSidePaddings = context.getResources()
                .getDimensionPixelSize(R.dimen.notification_side_padding);
@@ -459,6 +461,7 @@ public class NotificationStackScrollLayout extends ViewGroup

    public void setLongPressListener(View.OnLongClickListener listener) {
        mSwipeHelper.setLongPressListener(listener);
        mLongClickListener = listener;
    }

    public void onChildDismissed(View v) {