summaryrefslogtreecommitdiff
path: root/tests/SystemUIDemoModeController/src
diff options
context:
space:
mode:
author Chavi Weingarten <chaviw@google.com> 2023-03-27 23:03:35 +0000
committer Chavi Weingarten <chaviw@google.com> 2023-03-27 23:03:35 +0000
commit6e139493079b6c6cfef7a9d5d2c322f5574840f6 (patch)
tree68bb8f18e00aa6cc79628ffcee811938ef7243c5 /tests/SystemUIDemoModeController/src
parent13f25d786fe6823426b3360325a27576c4b0c9a5 (diff)
Modify EmbeddedWindow InputTarget to work with IME
EmbeddedWindow implements InputTarget to allow IME to work for embedded windows. However, a few methods need to be modified to allow IME to work. 1. shouldControlIme should return true if there's a host WindowState. This doesn't meant the embedded window will control the IME, but rather the host for embedded will control the IME. This is needed to ensure the IME is reparented to the correct Activity and uses the parent WindowState to when determining inset controller. 2. getImeControlTarget should return the host WindowState's control target. This ensures the IME has the correct target information and not the fallback. 3. getActivityRecord should return the host ActivityRecord. This tells IME where to reparent the layer so it's a child of the ActivityRecord. Othewise, the IME layer is left where it was previously. Test: SurfaceControlViewHostTests Bug: 230340812 Change-Id: I8407c3ec7ed6372ed3484f25117db45944855a22
Diffstat (limited to 'tests/SystemUIDemoModeController/src')
0 files changed, 0 insertions, 0 deletions