diff options
| author | Ming-Shin Lu <lumark@google.com> | 2020-09-28 01:35:31 +0800 | 
|---|---|---|
| committer | Ming-Shin Lu <lumark@google.com> | 2020-11-25 23:32:49 +0800 | 
| commit | 152eacec4f5e1c78eafd42abbcf62fc12b0eee33 (patch) | |
| tree | 1e40ce0edc22e8a911b70f1e89295e8f8cf06ec6 /tools/aidl/generate_java.cpp | |
| parent | 976aa3d404547b6e535c1a8626ebb9f215076d5e (diff) | |
Let IME#onFinishInput called without dup onStartInput when screen-off
Also called IME#onStartInput without dup onFinishInput when screen-on,
to fix the long-standing IME input connection lifecycle issue when
device screen state changes.
Bug: 156215187
Bug: 26851566
Test: atest InputMethodStartInputLifecycleTest
Test: manual as below steps
      0) Enable InputMethodService debug flag.
      0-1) In Settings -> Develop options -> AppCompatibility Changes,
           Select Gboard and then toggle
           "FINISH_INPUT_NO_FALLBACK_CONNECTION" change.
      1) Launch a app with focused a editor and show soft-input
      2) When device screen turned-off, will see InputMethodService only
         callbacks below logs:
           CALL: doFinishInput
           CALL: onFinishInputView
           CALL: onFinishInput
      3) When device screen turned-on, will see InputMethodService only
         callbacks below logs:
           CALL: onStartInput
           CALL: onStartInputView
Change-Id: I8a657e75e274d842fb46b60375f6aeafeab96a59
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions
