Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 50cf27b0 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

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
parent 33d74806
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment