Merge "Generating a long-press even only when it's expected" into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7839eaa9b7
@@ -167,8 +167,8 @@ public class WorkspaceTouchListener extends GestureDetector.SimpleOnGestureListe
|
||||
|
||||
@Override
|
||||
public void onLongPress(MotionEvent event) {
|
||||
TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "Workspace.longPress");
|
||||
if (mLongPressState == STATE_REQUESTED) {
|
||||
TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "Workspace.longPress");
|
||||
if (canHandleLongPress()) {
|
||||
mLongPressState = STATE_PENDING_PARENT_INFORM;
|
||||
mWorkspace.getParent().requestDisallowInterceptTouchEvent(true);
|
||||
|
||||
Reference in New Issue
Block a user