diff options
Diffstat (limited to 'src/com/android/phone/common/dialpad/DialpadKeyButton.java')
-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(); |