summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-10-06 16:49:41 -0700
committerYorke Lee <yorkelee@google.com>2013-10-06 16:49:41 -0700
commit32faffb75268467768bac14797de444623c97148 (patch)
treea02a618328e04dd6683f3bfb76ca4d432245ae29 /res
parent524bc0b58afabd947cfaa4c13c28fa9660f398da (diff)
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
Diffstat (limited to 'res')
-rw-r--r--res/layout/dialpad.xml9
-rw-r--r--res/layout/dialpad_key.xml3
2 files changed, 8 insertions, 4 deletions
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" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -85,7 +86,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/star"
style="@style/DialtactsDialpadButtonStyle"
- android:clickable="true" >
+ android:clickable="true"
+ android:focusable="true" >
<TextView
android:id="@id/dialpad_key_number"
android:layout_width="wrap_content"
@@ -101,7 +103,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pound"
style="@style/DialtactsDialpadButtonStyle"
- android:clickable="true" >
+ android:clickable="true"
+ android:focusable="true" >
<TextView
android:id="@id/dialpad_key_number"
android:layout_width="wrap_content"
diff --git a/res/layout/dialpad_key.xml b/res/layout/dialpad_key.xml
index 074e0235f..e87fde056 100644
--- a/res/layout/dialpad_key.xml
+++ b/res/layout/dialpad_key.xml
@@ -18,7 +18,8 @@
<com.android.dialer.dialpad.DialpadKeyButton
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/DialtactsDialpadButtonStyle"
- android:clickable="true" >
+ android:clickable="true"
+ android:focusable="true" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"