diff options
author | Andrew Lee <anwlee@google.com> | 2015-06-04 14:38:50 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-06-04 14:41:23 -0700 |
commit | 5c1ab52ef391d2261a4005878b834a1cfe2ba349 (patch) | |
tree | 8b41c5751ba14bce3d8b69bbac2bdf11e1cc0587 | |
parent | 11412dc1a83fdc4133385c173e44175dc15e5b86 (diff) |
Fix shortcut action text length issues.
+ Lower shortcut char limits. There's probably 40 characters of
space on a N6, but less on smaller devices.
+ Shorten "Add to existing contact" to "add to contact".
Bug: 21550993
Change-Id: I136b01cd90ae36e07b7f567294e68316a57856a0
-rw-r--r-- | res/values/strings.xml | 10 | ||||
-rw-r--r-- | src/com/android/dialer/list/DialerPhoneNumberListAdapter.java | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 21cd8909f..213d340dd 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -495,17 +495,17 @@ </string> <!-- Shortcut item used to add a number directly to a new contact from search. - [CHAR LIMIT=40] --> + [CHAR LIMIT=25] --> <string name="search_shortcut_create_new_contact">Create new contact</string> <!-- Shortcut item used to add a number to an existing contact directly from search. - [CHAR LIMIT=40] --> - <string name="search_shortcut_add_to_existing_contact">Add to existing contact</string> + [CHAR LIMIT=25] --> + <string name="search_shortcut_add_to_contact">Add to contact</string> - <!-- Shortcut item used to send a text message directly from search. [CHAR LIMIT=40] --> + <!-- Shortcut item used to send a text message directly from search. [CHAR LIMIT=25] --> <string name="search_shortcut_send_sms_message">Send SMS</string> - <!-- Shortcut item used to make a video call directly from search. --> + <!-- Shortcut item used to make a video call directly from search. [CHAR LIMIT=25] --> <string name="search_shortcut_make_video_call">Make video call</string> <!-- Title for the call log list item that brings users to the full call history when clicked --> diff --git a/src/com/android/dialer/list/DialerPhoneNumberListAdapter.java b/src/com/android/dialer/list/DialerPhoneNumberListAdapter.java index 82daab5aa..8a4302319 100644 --- a/src/com/android/dialer/list/DialerPhoneNumberListAdapter.java +++ b/src/com/android/dialer/list/DialerPhoneNumberListAdapter.java @@ -149,7 +149,7 @@ public class DialerPhoneNumberListAdapter extends PhoneNumberListAdapter { drawableId = R.drawable.ic_search_add_contact; break; case SHORTCUT_ADD_TO_EXISTING_CONTACT: - text = resources.getString(R.string.search_shortcut_add_to_existing_contact); + text = resources.getString(R.string.search_shortcut_add_to_contact); drawableId = R.drawable.ic_person_24dp; break; case SHORTCUT_SEND_SMS_MESSAGE: |