diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-06-20 07:28:30 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-06-20 07:28:30 +0000 |
commit | 59e614c6abca281b145c7595c8482c6aa8b972f7 (patch) | |
tree | 9470ae5aaf91a7d0d1964307c0c00e8fe4a920ff | |
parent | ef524a1fc3317be4c4493f540a9a0c3dc8f8ead5 (diff) | |
parent | abd4b9781ae655f97393ba2a5fc8bd10e54c18a5 (diff) | |
download | android_packages_apps_PhoneCommon-59e614c6abca281b145c7595c8482c6aa8b972f7.tar.gz android_packages_apps_PhoneCommon-59e614c6abca281b145c7595c8482c6aa8b972f7.tar.bz2 android_packages_apps_PhoneCommon-59e614c6abca281b145c7595c8482c6aa8b972f7.zip |
release-request-95cbb47d-b12d-4748-8934-a5ed56cbe040-for-git_oc-dr1-release-4116076 snap-temp-L12600000075746614
Change-Id: If600637db50503f9423d8e093ffbf93a7ca94004
-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(); |