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

Commit 48c5f38b authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Ensure forwarding listener target is long-clickable" into nyc-mr1-dev

parents 12fae936 11ace9ee
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -58,13 +58,14 @@ public abstract class ForwardingListener

    public ForwardingListener(View src) {
        mSrc = src;
        src.setLongClickable(true);
        src.addOnAttachStateChangeListener(this);

        mScaledTouchSlop = ViewConfiguration.get(src.getContext()).getScaledTouchSlop();
        mTapTimeout = ViewConfiguration.getTapTimeout();

        // Use a medium-press timeout. Halfway between tap and long-press.
        mLongPressTimeout = (mTapTimeout + ViewConfiguration.getLongPressTimeout()) / 2;

        src.addOnAttachStateChangeListener(this);
    }

    /**