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

Commit 980e0a14 authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by Android (Google) Code Review
Browse files

Merge "Ignore IME subtype switching support flag until it's ready"

parents 5f38ad93 f03ba0ca
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();
            }