diff options
| author | satok <satok@google.com> | 2010-11-01 19:41:44 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-11-01 19:41:44 -0700 |
| commit | e1bef9404c82a13dcb33d29408a491cb77c962a5 (patch) | |
| tree | a9503eb1da5b110e7f0d020320a0e3ebed2cc543 | |
| parent | 21e941bf43362ddc6639a9f2d0828053360f53d7 (diff) | |
| parent | 57c767c7b7a4cdcd0c33ec453a9f2c0b853999b6 (diff) | |
| download | frameworks_base-e1bef9404c82a13dcb33d29408a491cb77c962a5.zip frameworks_base-e1bef9404c82a13dcb33d29408a491cb77c962a5.tar.gz frameworks_base-e1bef9404c82a13dcb33d29408a491cb77c962a5.tar.bz2 | |
Merge "Fix a bug that enabled Subtype ID can't be saved propery."
| -rw-r--r-- | services/java/com/android/server/InputMethodManagerService.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index 07da0fa..20e8bbe 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java @@ -1881,11 +1881,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub String id = pair.first; ArrayList<String> subtypes = pair.second; builder.append(id); - if (subtypes.size() > 0) { - builder.append(subtypes.get(0)); - for (int i = 1; i < subtypes.size(); ++i) { - builder.append(INPUT_METHOD_SUBTYPE_SEPARATER).append(subtypes.get(i)); - } + // Inputmethod and subtypes are saved in the settings as follows: + // ime0;subtype0;subtype1:ime1;subtype0:ime2:ime3;subtype0;subtype1 + for (String subtypeId: subtypes) { + builder.append(INPUT_METHOD_SUBTYPE_SEPARATER).append(subtypeId); } } |
