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

Skip to content
Commit cd4a8a11 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Conditionally initialize IMMS#mCurrentUserId with a main user

With an assumption that we would enable concurrent multi-user IME
support only in an environment where user 0 is not the main user, this
CL changes how

  InputMethodManagerService#mCurrentUserId

is initialized when IMMS#mExperimentalConcurrentMultiUserModeEnabled
is set to true. With this CL it will be initialized to be the first
found main user ID instead of the current user ID when IMMS is
initialized.

Note that this behavior change is fully guarded behind

  IMMS#mExperimentalConcurrentMultiUserModeEnabled

hence there must be no observable behavior changes in other
environments.

Bug: 341558132
Flag: android.view.inputmethod.concurrent_input_methods
Test: presubmit
Test: atest FrameworksInputMethodSystemServerTests
Change-Id: Ie2ee161bea771c5928b504bee494813ac8e1fb7b
parent e03efadb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment