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

Skip to content
Commit 56fa6466 authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Fix IME insets not apply hidden when switching focus in diffrent users

Normally, the focus window will apply the IME visibility state to
WindowManager when the IME has applied it. But it would be too late
when switching IMEs in between different users. (Since the focused IME
will first unbind the service to switch to bind the next user of the
IME service, that wouldn't make the attached IME token validity check
in time)

As a result, we have to notify WM to apply IME visibility before
clearing the binding states in the first place.

Fix: 285821212
Test: manual as issue steps
  1. Launch youtube with personal profile
  2. Launch Gmail with work profile
  3. Split youtube with personal profile and gmail with work profile
   (The Work Profile app is split and shown upper)
  4. Typing something with personal profile app
  5. Click work profile app at blank space. (Non input box)
  6. Expects IME insets should be hidden without seeing the black area
Test: atest DefaultImeVisibilityApplierTest#\
              testApplyImeVisibility_hideImeWhenUnbinding
Change-Id: I0873ec065722e9e0b22dd5010d3415d3704cfd2d
parent d6d7f44c
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