diff options
| author | Kaikai Wang <kaikai@google.com> | 2014-09-18 17:38:46 -0700 |
|---|---|---|
| committer | Kaikai Wang <kaikai@google.com> | 2014-09-18 17:38:46 -0700 |
| commit | a5461b72d228191efda5ef084455f3066d5648ae (patch) | |
| tree | c854577ee25fd90b29c94176238feb1a7cf7359b | |
| parent | b1aeb7b6e08b0b8dd548c4f0e5ac55844fd7f55d (diff) | |
| download | android_frameworks_opt_chips-a5461b72d228191efda5ef084455f3066d5648ae.tar.gz android_frameworks_opt_chips-a5461b72d228191efda5ef084455f3066d5648ae.tar.bz2 android_frameworks_opt_chips-a5461b72d228191efda5ef084455f3066d5648ae.zip | |
Bug: 17517371: Stop using custom action label in chips
Change-Id: If913b67028acf400327401116e7d65f9634d6a75
| -rw-r--r-- | Android.mk | 2 | ||||
| -rw-r--r-- | src/com/android/ex/chips/RecipientEditTextView.java | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -17,7 +17,7 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libchips LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 -LOCAL_SDK_VERSION := 19 +LOCAL_SDK_VERSION := current LOCAL_SRC_FILES := \ $(call all-java-files-under, src) \ $(call all-logtags-files-under, src) diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java index 6306498..f1a2c00 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -367,7 +367,11 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements } outAttrs.actionId = EditorInfo.IME_ACTION_DONE; - outAttrs.actionLabel = getContext().getString(R.string.action_label); + + // Custom action labels are discouraged in L; a checkmark icon is shown in place of the + // custom text in this case. + outAttrs.actionLabel = Build.VERSION.SDK_INT >= Build.VERSION_CODES.L ? null : + getContext().getString(R.string.action_label); return connection; } |
