am ee5e77ca: Make setAdditionalInputMethodSubtypes async

* commit 'ee5e77cafec2eae70890abdcc1646ed39b06eddd':
  Make setAdditionalInputMethodSubtypes async
This commit is contained in:
satok
2011-09-02 03:32:26 -07:00
committed by Android Git Automerger
5 changed files with 10 additions and 20 deletions

View File

@@ -1593,15 +1593,13 @@ public final class InputMethodManager {
* to the current implementation.)
* @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(String imiId, InputMethodSubtype[] subtypes) {
public void setAdditionalInputMethodSubtypes(String imiId, InputMethodSubtype[] subtypes) {
synchronized (mH) {
try {
return mService.setAdditionalInputMethodSubtypes(imiId, subtypes);
mService.setAdditionalInputMethodSubtypes(imiId, subtypes);
} catch (RemoteException e) {
Log.w(TAG, "IME died: " + mCurId, e);
return false;
}
}
}

View File

@@ -68,5 +68,5 @@ interface IInputMethodManager {
boolean setCurrentInputMethodSubtype(in InputMethodSubtype subtype);
boolean switchToLastInputMethod(in IBinder token);
boolean setInputMethodEnabled(String id, boolean enabled);
boolean setAdditionalInputMethodSubtypes(String id, in InputMethodSubtype[] subtypes);
oneway void setAdditionalInputMethodSubtypes(String id, in InputMethodSubtype[] subtypes);
}