diff options
| author | 2022-10-17 15:20:46 -0700 | |
|---|---|---|
| committer | 2022-10-17 15:20:46 -0700 | |
| commit | 67a7f002401380b97b7febcf79e5797d5524d5ba (patch) | |
| tree | 0990488df9335c431c465a2d3255f86e4808ec73 /libs/androidfw/AssetsProvider.cpp | |
| parent | 7942003609c0188ff3cab5b653dd5c41f2ceaf48 (diff) | |
Remove a redundant check from IMM#isAcceptingText()
This is a follow up CL to my previous CL [1], which rewrote
InputMethodManager#isAcceptingText()
with a newly introduced internal method
RemoteInputConnectionImpl#isFinished().
What I overlooked was the fact that
mServedInputConnection.isFinished()
is guaranteed to return "true" while
InputMethodManager#mServedInputConnection
is nonnull. Let's simplify the logic.
This is a safe clean up. There must be no observable behavior change.
[1]: Ic5fbc6213ad62df95fc0b7eef18bab1fd9fbdbf1
d1ff9740c14fe144a2c67e953d0e4f9a7f8c6e46
Bug: 234882948
Test: presubmit
Change-Id: Icee431b05108aa607ea0a56c683a361399b7583e
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions