summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Yohei Yukawa <yukawa@google.com> 2024-05-21 18:57:16 +0900
committer Yohei Yukawa <yukawa@google.com> 2024-05-21 18:57:16 +0900
commitfc09b798447c939be81695f7ef334aa60be720dc (patch)
tree229d83cda48a39af951f69fe7481085a51324449 /api/api.go
parent584dcb60ea97c94126766bab97e0cdf50662643f (diff)
Introduce IMMS#getInputMethodBindingController()
This is a mechcanical refactoring CL that aims to simplify the code by taking advantage of per-user InputMethodBindingController instance we recently introduced [1]. As you can see in this CL, the following code snippet can be seen so many places. final var userData = mUserDataRepository.getOrCreate(mCurrentUserId); final var bindingController = userData.mBindingController; Let's simplify them by introducing InputMethodManagerService#getInputMethodBindingController(userId). There must be no observable behavior change. [1]: Id6e9eca6caaa8edde8c4a405448c31c0ca986509 2238ecd4633b60b87f8bf34fc027a8780082d235 Bug: 325515685 Bug: 339358344 Test: presubmit Change-Id: I3e2d196e91c9adbc326388a6ebbbbcfe6b46b196
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions