summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-06-20 07:11:45 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-06-20 07:11:45 +0000
commit21ad1929608941122c537ac1adf50453fbe430db (patch)
tree1d0c47daa909d1f8ce3d0b563c66ab6e3df4880e
parenta53002c503d59025a6f413a03a77f6b4697438c3 (diff)
parentefa2dbaccc31f4ad416d627d2fa480b390bf400a (diff)
downloadpackages_apps_PhoneCommon-lineage-15.0.tar.gz
packages_apps_PhoneCommon-lineage-15.0.tar.bz2
packages_apps_PhoneCommon-lineage-15.0.zip
release-request-8a29fe1b-a466-48e3-824a-9b3737e5c08a-for-git_oc-release-4115999 snap-temp-L30600000075741665lineage-15.0
Change-Id: If26d68430943f9f610b8698223f208489e1a7ed9
-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();