Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1bef940 authored by satok's avatar satok Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug that enabled Subtype ID can't be saved propery."

parents 21e941bf 57c767c7
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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);
            }
        }