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

Don't give the IME child window focus when switching tasks

When switching the app task, we keep the IME window visibility for
better transitioning experiences.

However, in case IME created a child window without dismissing
during the task switching to keep the window focus because the IME
window has higher window hierarchy.

Hence, we don't give it focus if the next IME layering target
doesn't actually request the IME visible.

Fix: 186329504
Test: manual as issue steps:
  1) Tap any text box to bring up Gboard.
  2) Tap access point -> '..' -> Share Gboard or Quality Bug Report.
  3) Swipe up to Home screen.
  4) Tap another text box.
  6) Verify if the IME can shown as expected after editor focused
Test: atest DisplayContentTests#\
      testImeChildWindowFocusWhenImeLayeringTargetChanges
Change-Id: I72618745542f33bcbb1001bd3b812e79f7652dda
parent 63a14538
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