Merge "Prevent two overlapping long press actions." into ub-launcher3-rvc-dev
This commit is contained in:
commit
2a14c83515
1 file changed
+4
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user