diff options
author | Ameer Armaly <aarmaly@google.com> | 2020-06-26 10:19:40 -0700 |
---|---|---|
committer | Ameer Armaly <aarmaly@google.com> | 2020-06-26 14:04:46 -0700 |
commit | 4b8fac016d11d7a4a960917e66a2138d48016129 (patch) | |
tree | 79a5d2110de9130e41931ef1708336620176a406 | |
parent | f48c1931a94852b2ad515b148b90b043ef3571e7 (diff) |
[DO NOT MERGE] TouchExplorer: do not use accessibility action to long click.
This got overlooked during the initial revert.
Bug: 159941636
Test: atest TouchExplorerTest
Change-Id: I257852d69e299c7f0302d15b23d96f302f922005
-rw-r--r-- | services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java b/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java index 373d47ed366b..6f2e6263b937 100644 --- a/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java +++ b/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java @@ -309,14 +309,9 @@ public class TouchExplorer extends BaseEventStreamTransformation @Override public void onDoubleTapAndHold(MotionEvent event, MotionEvent rawEvent, int policyFlags) { - // Try to use the standard accessibility API to long click - if (!mAms.performActionOnAccessibilityFocusedItem( - AccessibilityNodeInfo.AccessibilityAction.ACTION_LONG_CLICK)) { - Slog.e(LOG_TAG, "ACTION_LONG_CLICK failed."); - if (mDispatcher.longPressWithTouchEvents(event, policyFlags)) { - sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); - mState.startDelegating(); - } + if (mDispatcher.longPressWithTouchEvents(event, policyFlags)) { + sendHoverExitAndTouchExplorationGestureEndIfNeeded(policyFlags); + mState.startDelegating(); } } |