commit | 50cf27b0975aaf8484bc388067ea6c3bc7b5b884 | [log] [tgz] |
---|---|---|
author | Yohei Yukawa <yukawa@google.com> | Wed Aug 30 16:16:37 2023 -0700 |
committer | Yohei Yukawa <yukawa@google.com> | Wed Aug 30 16:16:37 2023 -0700 |
tree | a098e904107b01f4c4bb0e8ed044b68acd028c42 | |
parent | 33d74806d127c7e94ebf0c4a10b72b18d712d3ec [diff] |
Stop calling IMM#isActive() from TextView#onDraw() Despite its name, InputMethodManager#isActive(View) internally aquires IMM lock three times and may even trigger IME focus switching. To make things simpler and more predictable, InputMethodManager#hasActiveInputConnectionInternal(View) should be used instead, especially for methods like TextView#onDraw(). Bug: 291826769 Test: presubmit Test: atest CtsInputMethodTestCases Change-Id: I27f2d66050588c5adc6315160e54486131f3fca2