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

Commit 2188e55b authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Temporarily make binding controller no-op for visible bg users

This is a quick folow up to my previous CL [1], which attempted to
incrementally implement concurrent multi-user IME without any
observable issues.

In case the above change had caused NullPointerException in

  InputMethodManagerService#reRequestCurrentClientSessionLocked()

let's make InputMethodBindingController no-op again by not calling

  InputMethodBindingController#setSelectedMethodId()

for now.

Note that the behavior remains to be fully guarded behind

  IMMS#mExperimentalConcurrentMultiUserModeEnabled.

There must be no observable behavior change unless the above settings
is enabled.

 [1]: I414a228e068fa53223234fe1db3e813474841604
      f7d90f36

Bug: 341558132
Fix: 344883373
Test: presubmit
Flag: android.view.inputmethod.concurrent_input_methods
Change-Id: Ie8cea0888fab987d48410ae7638423f56d7029a2
parent 53265788
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -2942,8 +2942,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
            id = imi.getId();
            id = imi.getId();
            settings.putSelectedInputMethod(id);
            settings.putSelectedInputMethod(id);
        }
        }
        final var bindingController = getInputMethodBindingController(userId);
        bindingController.setSelectedMethodId(id);
    }
    }


    @GuardedBy("ImfLock.class")
    @GuardedBy("ImfLock.class")