Loading core/java/android/view/inputmethod/InputMethodManager.java +11 −0 Original line number Diff line number Diff line Loading @@ -2203,6 +2203,17 @@ public final class InputMethodManager { * by changing its extra value. The different subtype won't get affected by the stored past * status. (You may want to take a look at {@link InputMethodSubtype#hashCode()} to refer * to the current implementation.) * * <p>NOTE: If the same subtype exists in both the manifest XML file and additional subtypes * specified by {@code subtypes}, those multiple instances are automatically merged into one * instance.</p> * * <p>CAVEAT: In API Level 23 and prior, the system may do nothing if an empty * {@link InputMethodSubtype} is specified in {@code subtypes}, which prevents you from removing * the last one entry of additional subtypes. If your IME statically defines one or more * subtypes in the manifest XML file, you may be able to work around this limitation by * specifying one of those statically defined subtypes in {@code subtypes}.</p> * * @param imiId Id of InputMethodInfo which additional input method subtypes will be added to. * @param subtypes subtypes will be added as additional subtypes of the current input method. */ Loading services/core/java/com/android/server/InputMethodManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -2537,7 +2537,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub } // By this IPC call, only a process which shares the same uid with the IME can add // additional input method subtypes to the IME. if (TextUtils.isEmpty(imiId) || subtypes == null || subtypes.length == 0) return; if (TextUtils.isEmpty(imiId) || subtypes == null) return; synchronized (mMethodMap) { final InputMethodInfo imi = mMethodMap.get(imiId); if (imi == null) return; Loading Loading
core/java/android/view/inputmethod/InputMethodManager.java +11 −0 Original line number Diff line number Diff line Loading @@ -2203,6 +2203,17 @@ public final class InputMethodManager { * by changing its extra value. The different subtype won't get affected by the stored past * status. (You may want to take a look at {@link InputMethodSubtype#hashCode()} to refer * to the current implementation.) * * <p>NOTE: If the same subtype exists in both the manifest XML file and additional subtypes * specified by {@code subtypes}, those multiple instances are automatically merged into one * instance.</p> * * <p>CAVEAT: In API Level 23 and prior, the system may do nothing if an empty * {@link InputMethodSubtype} is specified in {@code subtypes}, which prevents you from removing * the last one entry of additional subtypes. If your IME statically defines one or more * subtypes in the manifest XML file, you may be able to work around this limitation by * specifying one of those statically defined subtypes in {@code subtypes}.</p> * * @param imiId Id of InputMethodInfo which additional input method subtypes will be added to. * @param subtypes subtypes will be added as additional subtypes of the current input method. */ Loading
services/core/java/com/android/server/InputMethodManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -2537,7 +2537,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub } // By this IPC call, only a process which shares the same uid with the IME can add // additional input method subtypes to the IME. if (TextUtils.isEmpty(imiId) || subtypes == null || subtypes.length == 0) return; if (TextUtils.isEmpty(imiId) || subtypes == null) return; synchronized (mMethodMap) { final InputMethodInfo imi = mMethodMap.get(imiId); if (imi == null) return; Loading