Ensure forwarding listener target is long-clickable

am: 11ace9eedb

Change-Id: I182f933b35aef0da062bf6e7d4c485d681d50258
This commit is contained in:
Alan Viverette
2016-07-22 21:18:43 +00:00
committed by android-build-merger

View File

@@ -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);
}
/**