Merge "Prevent two overlapping long press actions." into ub-launcher3-rvc-dev
This commit is contained in:
commit
2a14c83515
|
@ -113,7 +113,10 @@ public class CheckLongPressHelper {
|
|||
}
|
||||
|
||||
private void triggerLongPress() {
|
||||
if ((mView.getParent() != null) && mView.hasWindowFocus() && !mHasPerformedLongPress) {
|
||||
if ((mView.getParent() != null)
|
||||
&& mView.hasWindowFocus()
|
||||
&& (!mView.isPressed() || mListener == null)
|
||||
&& !mHasPerformedLongPress) {
|
||||
boolean handled;
|
||||
if (mListener != null) {
|
||||
handled = mListener.onLongClick(mView);
|
||||
|
|
Loading…
Reference in New Issue