diff options
author | Mindy Pereira <mindyp@google.com> | 2012-05-09 11:26:45 -0700 |
---|---|---|
committer | Mindy Pereira <mindyp@google.com> | 2012-05-09 11:26:45 -0700 |
commit | 1896ac000251e74f4939421d3d4d28b69717c52a (patch) | |
tree | 280508b027b03d306f916b97fe290797667c8931 | |
parent | dd5c5cf8541ca41b70f396c4ee3152c069b2b72d (diff) | |
download | android_frameworks_ex-1896ac000251e74f4939421d3d4d28b69717c52a.tar.gz android_frameworks_ex-1896ac000251e74f4939421d3d4d28b69717c52a.tar.bz2 android_frameworks_ex-1896ac000251e74f4939421d3d4d28b69717c52a.zip |
Change text on "done" to say "return"
Fixes b/6468243 While adding chips to the To field display label "Return" instead of "Done"
Change-Id: I42f9a845c553f0aa01971c5b3221ce5d0504c810
-rw-r--r-- | chips/res/values/strings.xml | 3 | ||||
-rw-r--r-- | chips/src/com/android/ex/chips/RecipientEditTextView.java | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/chips/res/values/strings.xml b/chips/res/values/strings.xml index 369a6cb..f67d440 100644 --- a/chips/res/values/strings.xml +++ b/chips/res/values/strings.xml @@ -26,4 +26,7 @@ <!-- Text displayed when the user long presses on a chip to copy the recipient's phone number. [CHAR LIMIT=200] --> <string name="copy_number">Copy phone number</string> + <!-- Text displayed in the enter key slot when the recipientedittextview has focus. + [CHAR LIMIT=12] --> + <string name="done">Return</string> </resources> diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java index 759c7ce..39a481b 100644 --- a/chips/src/com/android/ex/chips/RecipientEditTextView.java +++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java @@ -294,6 +294,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements if ((outAttrs.imeOptions&EditorInfo.IME_FLAG_NO_ENTER_ACTION) != 0) { outAttrs.imeOptions &= ~EditorInfo.IME_FLAG_NO_ENTER_ACTION; } + outAttrs.actionLabel = getContext().getString(R.string.done); return connection; } |