From 32faffb75268467768bac14797de444623c97148 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Sun, 6 Oct 2013 16:49:41 -0700 Subject: Fix accessibility issues with dialpad Each dialpad key needs to manually have the "focusable" flag set so that hovering and lift-to-type works properly. The edittext containing digits needs to receive focus at least once in order for it to report sendAccessibilityEventTypeViewTextChanged type events. In JB-MR2, the ViewPager would automatically give focus to the dialpad fragment when it was swiped into view, but now we have to manually give it focus ourselves when the dialpad fragment is swiped into view. Bug: 11067558 Change-Id: I56a1891b12d5ec7771a37e1f7c361242ebfe028d --- src/com/android/dialer/dialpad/DialpadFragment.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java') diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index bcf058b02..9ebf1121c 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1704,6 +1704,7 @@ public class DialpadFragment extends Fragment activity.showSearchBar(); } else { activity.hideSearchBar(); + mDigits.requestFocus(); } } -- cgit v1.2.3