summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Yohei Yukawa <yukawa@google.com> 2024-07-23 14:54:03 -0700
committer Yohei Yukawa <yukawa@google.com> 2024-07-23 23:23:29 +0000
commit2958d1748574d479dad8589f4356c8030339622d (patch)
treea76e3c46fbaa666191b19897a7264a2f48c46ec8 /api/api_test.go
parent1054f4ec74e7e2db5f1752ab88f66490009229c2 (diff)
Make IMM#getCurrentInputMethod{Info,Subtype} consistent
Since it was originall introduced [1], InputMethodManager#getCurrentInputMethodInfo() has been built by using Settings.Secure.DEFAULT_INPUT_METHOD as the source of truth when determinig the currently selected IME for the given user. On the other hand, InputMethodManager#getCurrentInputMethodSubtype() uses InputMethodBindingController#getCurrentInputMethodSubtype() as the source of truth when determing the currently selected subtype for the given user. With this CL #getCurrentInputMethodInfo() starts using InputMethodBindingController as the source of truth as well, because that's what InputMethodManagerService actually does when establishing a connection. The new behavior is guarged with a build time flag. [1]: I60a0f67bf7d261d3a4a733adcb8a022ceac6e1db 2422bcffe2351789dc80be68b6f6d5515dc0fa11 Bug: 355034523 Test: presubmit Flag: build.consistent_get_current_input_method_info Change-Id: I83716695094a58ee6ceab1a26c6d514c49cb4c15
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions