diff options
author | satok <satok@google.com> | 2011-07-18 20:42:54 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-18 20:42:54 -0700 |
commit | 4273ed652ae9ea2af0a77b6d59a183ebce53a680 (patch) | |
tree | f266c898cd8b72f6819d049d2ab6d3cdf3dec98b /core/java/android | |
parent | d61752d7e6f546dcd41018bd8371a9a9617fe66d (diff) | |
parent | 91e88122cf28a48fd2e2260da7d3d87dd437227a (diff) | |
download | frameworks_base-4273ed652ae9ea2af0a77b6d59a183ebce53a680.zip frameworks_base-4273ed652ae9ea2af0a77b6d59a183ebce53a680.tar.gz frameworks_base-4273ed652ae9ea2af0a77b6d59a183ebce53a680.tar.bz2 |
Merge "Enable IMEs to set additional subtypes in background"
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index e5f3fc9..da5baf8 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -26,6 +26,7 @@ import com.android.internal.view.IInputMethodSession; import com.android.internal.view.InputBindResult; import android.content.Context; +import android.content.pm.PackageManager; import android.graphics.Rect; import android.os.Bundle; import android.os.Handler; @@ -1580,16 +1581,16 @@ public final class InputMethodManager { } /** - * Set additional input method subtypes. - * @param imeToken Supplies the identifying token given to an input method. + * Set additional input method subtypes. Only a process which shares the same uid with the IME + * can add additional input method subtypes to the IME. + * @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. * @return true if the additional input method subtypes are successfully added. */ - public boolean setAdditionalInputMethodSubtypes( - IBinder imeToken, InputMethodSubtype[] subtypes) { + public boolean setAdditionalInputMethodSubtypes(String imiId, InputMethodSubtype[] subtypes) { synchronized (mH) { try { - return mService.setAdditionalInputMethodSubtypes(imeToken, subtypes); + return mService.setAdditionalInputMethodSubtypes(imiId, subtypes); } catch (RemoteException e) { Log.w(TAG, "IME died: " + mCurId, e); return false; |