Loading core/java/android/view/inputmethod/EditorInfo.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -155,7 +155,7 @@ public class EditorInfo implements InputType, Parcelable { public static final int IME_ACTION_PREVIOUS = 0x00000007; 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 * data such as typing history and personalized language model based on what the user typed on * this text editing object. Typical use cases are: * this text editing object. Typical use cases are: * <ul> * <ul> Loading core/res/res/values/attrs.xml +16 −0 Original line number Original line Diff line number Diff line Loading @@ -1371,6 +1371,22 @@ Corresponds to Corresponds to {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. --> {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. --> <flag name="actionPrevious" value="0x00000007" /> <flag name="actionPrevious" value="0x00000007" /> <!-- 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: <ul> <li>When the application is in a special mode, where user's activities are expected to be not recorded in the application's history. Some web browsers and chat applications may have this kind of modes.</li> <li>When storing typing history does not make much sense. Specifying this flag in typing games may help to avoid typing history from being filled up with words that the user is less likely to type in their daily life. Another example is that when the application already knows that the expected input is not a valid word (e.g. a promotion code that is not a valid word in any natural language).</li> </ul> <p>Applications need to be aware that the flag is not a guarantee, and some IMEs may not respect it.</p> --> <flag name="flagNoPersonalizedLearning" value="0x1000000" /> <!-- Used to request that the IME never go <!-- Used to request that the IME never go into fullscreen mode. Applications need to be aware that the flag is not into fullscreen mode. Applications need to be aware that the flag is not a guarantee, and not all IMEs will respect it. a guarantee, and not all IMEs will respect it. Loading Loading
core/java/android/view/inputmethod/EditorInfo.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -155,7 +155,7 @@ public class EditorInfo implements InputType, Parcelable { public static final int IME_ACTION_PREVIOUS = 0x00000007; 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 * data such as typing history and personalized language model based on what the user typed on * this text editing object. Typical use cases are: * this text editing object. Typical use cases are: * <ul> * <ul> Loading
core/res/res/values/attrs.xml +16 −0 Original line number Original line Diff line number Diff line Loading @@ -1371,6 +1371,22 @@ Corresponds to Corresponds to {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. --> {@link android.view.inputmethod.EditorInfo#IME_ACTION_PREVIOUS}. --> <flag name="actionPrevious" value="0x00000007" /> <flag name="actionPrevious" value="0x00000007" /> <!-- 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: <ul> <li>When the application is in a special mode, where user's activities are expected to be not recorded in the application's history. Some web browsers and chat applications may have this kind of modes.</li> <li>When storing typing history does not make much sense. Specifying this flag in typing games may help to avoid typing history from being filled up with words that the user is less likely to type in their daily life. Another example is that when the application already knows that the expected input is not a valid word (e.g. a promotion code that is not a valid word in any natural language).</li> </ul> <p>Applications need to be aware that the flag is not a guarantee, and some IMEs may not respect it.</p> --> <flag name="flagNoPersonalizedLearning" value="0x1000000" /> <!-- Used to request that the IME never go <!-- Used to request that the IME never go into fullscreen mode. Applications need to be aware that the flag is not into fullscreen mode. Applications need to be aware that the flag is not a guarantee, and not all IMEs will respect it. a guarantee, and not all IMEs will respect it. Loading