diff options
author | Taran Singh <tarandeep@google.com> | 2021-03-01 19:35:51 +0000 |
---|---|---|
committer | Taran Singh <tarandeep@google.com> | 2021-03-10 08:22:42 +0000 |
commit | 9a2eed9f496f1fbca3434b672dfdeb2f59448078 (patch) | |
tree | f7512e2d3dff38f92f4e3228212444c6c53fc8c1 /rs/java/android/renderscript/Program.java | |
parent | ee971e56485627db54ef7a5336f710368c732726 (diff) |
Avoid IME restart for configChanges
Handle onConfigurationChanged() in order to prevent restarting
InputMethodService everytime. We introduce a new API attribute
"configChanges" in InputMethod(attrs.xml) which when declared
by IME, will be responsible for handling mentioned
configuration changes.
This CL re-introduces [1] with fix: Use new Configuration instance for
IMS#mLastKnownConfig
[1] Iff88b768c6b06cf5cf1fe9e97ee97f8f78e6f0bd
Bug: 167948419
Test: atest InputMethodServiceTest
Manually:
1. Patch Ie91e7a8e06b80864ef9409031e8543858552d70d to use dual
display area.
2. Open applications with editors on both display areas.
3. Attach a debug point for IMS#onConfigurationChanged().
4. Make sure IMS#resetStateForNewConfiguration() is not called
when IME moves between these two identical DisplayAreas
Change-Id: Ib94fddadb0dae648cf73a4c1642e51edebd19f50
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions