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

Commit 1d5526db authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Simplify IMMS#startVrInputMethodNoCheck a bit"

parents 0ff7a642 7a46c28d
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -889,7 +889,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub


    /**
    /**
     * Start a VR InputMethod that matches IME with package name of {@param component}.
     * Start a VR InputMethod that matches IME with package name of {@param component}.
     * Note: This method is called from {@link VrManager}.
     * Note: This method is called from {@link android.app.VrManager}.
     */
     */
    private void startVrInputMethodNoCheck(@Nullable ComponentName component) {
    private void startVrInputMethodNoCheck(@Nullable ComponentName component) {
        if (component == null) {
        if (component == null) {
@@ -903,7 +903,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
            for (InputMethodInfo info : mMethodList) {
            for (InputMethodInfo info : mMethodList) {
                if (TextUtils.equals(info.getPackageName(), packageName) && info.isVrOnly()) {
                if (TextUtils.equals(info.getPackageName(), packageName) && info.isVrOnly()) {
                    // set this is as current inputMethod without updating settings.
                    // set this is as current inputMethod without updating settings.
                    setInputMethodEnabled(info.getId(), true);
                    setInputMethodEnabledLocked(info.getId(), true);
                    setInputMethodLocked(info.getId(), NOT_A_SUBTYPE_ID);
                    setInputMethodLocked(info.getId(), NOT_A_SUBTYPE_ID);
                    break;
                    break;
                }
                }