From d91860d9cee7387e1ca035df3c15f3bfba5929fa Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Fri, 14 Apr 2017 13:46:37 -0700 Subject: [PATCH] Support flagNoPersonalizedLearning in layout XML In my previous CL [1] a new flag IME_FLAG_NO_PERSONALIZED_LEARNING was added for EditorInfo.imeOptions. What was missed in the previous CL is that new flag definition for layout XML and as a result currently IME_FLAG_NO_PERSONALIZED_LEARNING is the only IME option flag that cannot be specified in layout XML. For instance, EditorInfo.IME_FLAG_FORCE_ASCII can be specified as follows. With this CL, application developers can specify IME_FLAG_NO_PERSONALIZED_LEARNING as follows. [1]: Ibf5ac3d2b8f39542baf2635c0cadbe242b059f81 5959af13d069e77ff2b2ac729225e7d248b83a79 Bug: 28157942 Fixes: 37305520 Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Change-Id: Ifca0b13bf336cdc609af820aadcdb1b45ca1d5ba --- .../android/view/inputmethod/EditorInfo.java | 2 +- core/res/res/values/attrs.xml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/core/java/android/view/inputmethod/EditorInfo.java b/core/java/android/view/inputmethod/EditorInfo.java index 2f12e9b5be839..28d9fcf57370b 100644 --- a/core/java/android/view/inputmethod/EditorInfo.java +++ b/core/java/android/view/inputmethod/EditorInfo.java @@ -155,7 +155,7 @@ public class EditorInfo implements InputType, Parcelable { public static final int IME_ACTION_PREVIOUS = 0x00000007; /** - * Flag of {@link #imeOptions}: used to request that the IME does not update any personalized + * Flag of {@link #imeOptions}: used to request that the IME should not update any personalized * data such as typing history and personalized language model based on what the user typed on * this text editing object. Typical use cases are: *
    diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index d26d952224f17..709ec64be54a4 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -1372,6 +1372,22 @@ Corresponds to {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. --> + +