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 --- res/layout/dialpad.xml | 9 ++++++--- res/layout/dialpad_key.xml | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'res') diff --git a/res/layout/dialpad.xml b/res/layout/dialpad.xml index ec850c971..bc910db91 100644 --- a/res/layout/dialpad.xml +++ b/res/layout/dialpad.xml @@ -36,7 +36,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/one" style="@style/DialtactsDialpadButtonStyle" - android:clickable="true" > + android:clickable="true" + android:focusable="true" > + android:clickable="true" + android:focusable="true" > + android:clickable="true" + android:focusable="true" > + android:clickable="true" + android:focusable="true" >