summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/layout/call_log_list_item_actions.xml24
-rw-r--r--res/values/strings.xml35
-rw-r--r--res/values/styles.xml1
-rw-r--r--src/com/android/dialer/calllog/CallLogListItemHelper.java14
4 files changed, 52 insertions, 22 deletions
diff --git a/res/layout/call_log_list_item_actions.xml b/res/layout/call_log_list_item_actions.xml
index 5740aaa38..a10b47f74 100644
--- a/res/layout/call_log_list_item_actions.xml
+++ b/res/layout/call_log_list_item_actions.xml
@@ -25,9 +25,7 @@
<LinearLayout
android:id="@+id/video_call_action"
- style="@style/CallLogActionStyle"
- android:nextFocusLeft="@+id/primary_action_view"
- android:nextFocusRight="@+id/voicemail_action">
+ style="@style/CallLogActionStyle">
<ImageView
style="@style/CallLogActionIconStyle"
@@ -41,9 +39,7 @@
<LinearLayout
android:id="@+id/voicemail_action"
- style="@style/CallLogActionStyle"
- android:nextFocusLeft="@+id/video_call_action"
- android:nextFocusRight="@+id/details_action">
+ style="@style/CallLogActionStyle">
<ImageView
style="@style/CallLogActionIconStyle"
@@ -57,9 +53,7 @@
<LinearLayout
android:id="@+id/create_new_contact_action"
- style="@style/CallLogActionStyle"
- android:nextFocusLeft="@+id/voicemail_action"
- android:nextFocusRight="@+id/add_to_existing_contact_action">
+ style="@style/CallLogActionStyle">
<ImageView
style="@style/CallLogActionIconStyle"
@@ -73,9 +67,7 @@
<LinearLayout
android:id="@+id/add_to_existing_contact_action"
- style="@style/CallLogActionStyle"
- android:nextFocusLeft="@+id/create_new_contact_action"
- android:nextFocusRight="@+id/details_action">
+ style="@style/CallLogActionStyle">
<ImageView
style="@style/CallLogActionIconStyle"
@@ -89,9 +81,7 @@
<LinearLayout
android:id="@+id/details_action"
- style="@style/CallLogActionStyle"
- android:nextFocusLeft="@+id/voicemail_action"
- android:nextFocusRight="@+id/report_action">
+ style="@style/CallLogActionStyle">
<ImageView
style="@style/CallLogActionIconStyle"
@@ -105,9 +95,7 @@
<LinearLayout
android:id="@+id/report_action"
- style="@style/CallLogActionStyle"
- android:nextFocusLeft="@+id/details_action"
- android:nextFocusRight="@+id/primary_action_view">
+ style="@style/CallLogActionStyle">
<ImageView
style="@style/CallLogActionIconStyle"
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 7568604af..79c441d16 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -585,26 +585,53 @@
action triggers a return call to the named user.
Note: AccessibilityServices uses this attribute to announce the purpose of the button.
[CHAR LIMIT=NONE] -->
- <string name="description_call_action">Call <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g></string>
+ <string name="description_call_action">
+ Call <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>
+ </string>
<!-- String describing the "video call" action for an entry in the call log. The video call
action triggers a return video call to the named person/number.
Note: AccessibilityServices uses this attribute to announce the purpose of the button.
[CHAR LIMIT=NONE] -->
- <string name="description_video_call_action">Video call to <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>.</string>
+ <string name="description_video_call_action">
+ Video call <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>.
+ </string>
<!-- String describing the "listen" action for an entry in the call log. The listen
action is shown for call log entries representing a voicemail message and this button
triggers playing back the voicemail.
Note: AccessibilityServices uses this attribute to announce the purpose of the button.
[CHAR LIMIT=NONE] -->
- <string name="description_voicemail_action">Listen to voicemail from <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g></string>
+ <string name="description_voicemail_action">
+ Listen to voicemail from <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>
+ </string>
+
+ <!-- Description for the "create new contact" action for an entry in the call log. This action
+ opens a screen for creating a new contact for this name or number. [CHAR LIMIT=NONE] -->
+ <string name="description_create_new_contact_action">
+ Create contact for <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>
+ </string>
+
+ <!-- Description for the "add to existing contact" action for an entry in the call log. This
+ action opens a screen for adding this name or number to an existing contact.
+ [CHAR LIMIT=NONE] -->
+ <string name="description_add_to_existing_contact_action">
+ Add <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g> to existing contact
+ </string>
<!-- String describing the "details" action for an entry in the call log. The details action
displays the call details screen for an entry in the call log. This shows the calls to
and from the specified number associated with the call log entry.
[CHAR LIMIT=NONE] -->
- <string name="description_details_action">Call details for <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g></string>
+ <string name="description_details_action">
+ Call details for <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>
+ </string>
+
+ <!-- Description for the "report" action for an entry in the call log. This action reports that
+ the phone number lookup performed for the entry was inaccurate. [CHAR LIMIT=NONE] -->
+ <string name="description_report_action">
+ Report <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>
+ </string>
<!-- Toast message which appears when a call log entry is deleted.
[CHAR LIMIT=NONE] -->
diff --git a/res/values/styles.xml b/res/values/styles.xml
index d41f334af..dab5c6aa1 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -177,6 +177,7 @@
<item name="android:fontFamily">"sans-serif-medium"</item>
<item name="android:focusable">true</item>
<item name="android:singleLine">true</item>
+ <item name="android:importantForAccessibility">no</item>
</style>
<style name="CallLogActionIconStyle">
diff --git a/src/com/android/dialer/calllog/CallLogListItemHelper.java b/src/com/android/dialer/calllog/CallLogListItemHelper.java
index 0e94ef402..7ec6752e4 100644
--- a/src/com/android/dialer/calllog/CallLogListItemHelper.java
+++ b/src/com/android/dialer/calllog/CallLogListItemHelper.java
@@ -99,9 +99,23 @@ import com.android.dialer.R;
TextUtils.expandTemplate(
mResources.getString(R.string.description_voicemail_action), nameOrNumber));
+ views.createNewContactButtonView.setContentDescription(
+ TextUtils.expandTemplate(
+ mResources.getString(R.string.description_create_new_contact_action),
+ nameOrNumber));
+
+ views.addToExistingContactButtonView.setContentDescription(
+ TextUtils.expandTemplate(
+ mResources.getString(R.string.description_add_to_existing_contact_action),
+ nameOrNumber));
+
views.detailsButtonView.setContentDescription(
TextUtils.expandTemplate(
mResources.getString(R.string.description_details_action), nameOrNumber));
+
+ views.reportButtonView.setContentDescription(
+ TextUtils.expandTemplate(
+ mResources.getString(R.string.description_report_action), nameOrNumber));
}
/**