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

Commit f03ba0ca authored by Satoshi Kataoka's avatar Satoshi Kataoka
Browse files

Ignore IME subtype switching support flag until it's ready

Bug: 7043015

Change-Id: Id55f4e23eb0931975c0f80fbd9cb28c2d29ac005
parent 02f8bf97
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ import java.util.TreeMap;
public class InputMethodSubtypeSwitchingController {
    private static final String TAG = InputMethodSubtypeSwitchingController.class.getSimpleName();
    private static final boolean DEBUG = false;
    // TODO: Turn on this flag and add CTS when the platform starts expecting that all IMEs return
    // true for supportsSwitchingToNextInputMethod().
    private static final boolean REQUIRE_SWITCHING_SUPPORT = false;
    private static final int MAX_HISTORY_SIZE = 4;
    private static final int NOT_A_SUBTYPE_ID = InputMethodUtils.NOT_A_SUBTYPE_ID;

@@ -260,10 +263,12 @@ public class InputMethodSubtypeSwitchingController {
            if (DEBUG) {
                Slog.d(TAG, "onCommitText: " + imi.getId() + ", " + subtype);
            }
            if (REQUIRE_SWITCHING_SUPPORT) {
                if (!imi.supportsSwitchingToNextInputMethod()) {
                    Slog.w(TAG, imi.getId() + " doesn't support switching to next input method.");
                    return;
                }
            }
            if (mTypedSubtypeHistory.size() >= MAX_HISTORY_SIZE) {
                mTypedSubtypeHistory.poll();
            }