summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-06-20 07:35:42 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-06-20 07:35:42 +0000
commitec8f922287a56d71f5a3fd4f1f2f77027337ee24 (patch)
tree9470ae5aaf91a7d0d1964307c0c00e8fe4a920ff
parent98eaa0fbcf3a1eb6fea10e5eb5240ae32a1b24c8 (diff)
parent55f4468d41fdf93f98ffec130daaabebd3825239 (diff)
downloadpackages_apps_PhoneCommon-ec8f922287a56d71f5a3fd4f1f2f77027337ee24.tar.gz
packages_apps_PhoneCommon-ec8f922287a56d71f5a3fd4f1f2f77027337ee24.tar.bz2
packages_apps_PhoneCommon-ec8f922287a56d71f5a3fd4f1f2f77027337ee24.zip
release-request-f3bcfb00-8080-4b95-b497-7457f544b4f6-for-git_oc-mr1-release-4116097 snap-temp-L44400000075746008
Change-Id: Ibc14559e83c60b77c41073bb309cda0d1c495b59
-rw-r--r--src/com/android/phone/common/dialpad/DialpadKeyButton.java4
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();