summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2021-09-10 11:37:40 -0700
committerYohei Yukawa <yukawa@google.com>2021-09-10 11:37:40 -0700
commit6d2e9786b47650b1e74729f5609ebe0982c2f86c (patch)
treefb905641ea1d49e35b33623fb0023acc40d0a38d /core/java/android/inputmethodservice/InputMethodService.java
parent95d4f0dc175f5579e765f49e3b6fa35338b807dc (diff)
Stop lying about MissingMethodFlags.REQUEST_CURSOR_UPDATES
This is a follow up CL to my previous CL [1], which used MissingMethodFlags mechanism [2] to let that API fail when the IME and the target app are not running on the same display. As discussed in Bug 194110780, however, there is a problem in the MissingMethodFlags mechanism that it could have caused unexpected task reordarings from the IME developer when sync InputConnection APIs immediatelly fail without waiting for those tasks to be scheduled to the target app then handled. As a preparation to fully deprecate MissingMethodFlags, this CL enables InputMethodManagerService to stop lying about MissingMethodFlags.REQUEST_CURSOR_UPDATES when the IME is rendered on a diffirent display than the target app. Such check is now explicitly implemented in RemoteInputConnectionImpl. Other than that, there is no observable behavior change. [1]: Ie2f7a5117cff3a13ad5c5806fd4b3abef7569549 3d2cc0fffd13f46923d0fcfdd73d375ebbe955ce [2]: I3c58fadd924fad72cb984f0c23d3099fd0295c64 19a80a1e807acd00bec999eaac7812da6ffce954 Bug: 131368625 Bug: 194110780 Test: atest CtsInputMethodTestCases Test: atest MultiDisplaySystemDecorationTests#testCrossDisplayBasicImeOperations Change-Id: Iec12733d37e112b7271436bba15094ae2a55a450
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions