diff options
author | Tyler Gunn <tgunn@google.com> | 2017-06-19 23:17:00 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-06-19 23:17:00 +0000 |
commit | bf437e7841e1647278247151f9f011753ecd5ba0 (patch) | |
tree | 9470ae5aaf91a7d0d1964307c0c00e8fe4a920ff | |
parent | 1c8f56402cf2b14e7975e3e84a7d7168e110fe0b (diff) | |
parent | fbf2d4ce937d1975d9f53dcbf0f8c27cb59441d4 (diff) | |
download | packages_apps_PhoneCommon-bf437e7841e1647278247151f9f011753ecd5ba0.tar.gz packages_apps_PhoneCommon-bf437e7841e1647278247151f9f011753ecd5ba0.tar.bz2 packages_apps_PhoneCommon-bf437e7841e1647278247151f9f011753ecd5ba0.zip |
Ensure single-click action occurs when long-click in accessibility mode. am: efa2dbaccc am: 6c50244785
am: fbf2d4ce93
Change-Id: Ibbbbf6ac4e6dae6a84cebbc62a1ee78097d1a8cb
-rw-r--r-- | src/com/android/phone/common/dialpad/DialpadKeyButton.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/phone/common/dialpad/DialpadKeyButton.java b/src/com/android/phone/common/dialpad/DialpadKeyButton.java index 8762914..f2458cc 100644 --- a/src/com/android/phone/common/dialpad/DialpadKeyButton.java +++ b/src/com/android/phone/common/dialpad/DialpadKeyButton.java @@ -171,6 +171,10 @@ public class DialpadKeyButton extends FrameLayout { case MotionEvent.ACTION_HOVER_EXIT: if (mHoverBounds.contains(event.getX(), event.getY())) { if (mLongHovered) { + // In accessibility mode the long press will not automatically cause + // the short press to fire for the button, so we will fire it now to + // emulate the same behavior (this is important for the 0 button). + simulateClickForAccessibility(); performLongClick(); } else { simulateClickForAccessibility(); |