summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2018-05-24 17:48:50 -0700
committerEric Erfanian <erfanian@google.com>2018-05-30 14:04:06 +0000
commit86d9e86d69647cdb691ef33fe51466801482dd30 (patch)
tree29487ff908f02374cce1c51805080b20c823c877 /java
parente70ef90dda54b30fb3ed4db35f35f875f4a47500 (diff)
Better a11y for the bottom sheet.
Bug: 70989658 Test: Manual PiperOrigin-RevId: 197983797 Change-Id: Iee1e658a7a652f53413dec01db68109c3b75dc6e
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml3
-rw-r--r--java/com/android/dialer/historyitemactions/res/layout/module_layout.xml2
2 files changed, 4 insertions, 1 deletions
diff --git a/java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml b/java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml
index afda32722..5c1678330 100644
--- a/java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml
+++ b/java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml
@@ -24,7 +24,8 @@
android:paddingEnd="8dp"
android:gravity="center_vertical"
android:orientation="horizontal"
- android:background="#FFFFFF">
+ android:background="#FFFFFF"
+ android:focusable="true">
<com.android.dialer.widget.ContactPhotoView
android:id="@+id/contact_photo_view"
diff --git a/java/com/android/dialer/historyitemactions/res/layout/module_layout.xml b/java/com/android/dialer/historyitemactions/res/layout/module_layout.xml
index f89ed82dc..ec8cc4ebd 100644
--- a/java/com/android/dialer/historyitemactions/res/layout/module_layout.xml
+++ b/java/com/android/dialer/historyitemactions/res/layout/module_layout.xml
@@ -22,12 +22,14 @@
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground">
+ <!-- The icon is not important for a11y as it is not clickable. -->
<ImageView
android:id="@+id/module_image"
android:layout_width="@dimen/contact_actions_image_size"
android:layout_height="@dimen/contact_actions_image_size"
android:layout_marginStart="@dimen/contact_actions_image_margin"
android:layout_marginEnd="@dimen/contact_actions_image_margin"
+ android:importantForAccessibility="no"
android:scaleType="center"/>
<TextView