summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Ming-Shin Lu <lumark@google.com> 2022-06-15 03:31:06 +0000
committer Ming-Shin Lu <lumark@google.com> 2022-06-16 14:52:11 +0000
commitae6bb5a6d2332eaceb218d7a3eb68284d8656afb (patch)
treec5d5307d7b5446d93e2aa3a364895c4a4e9e8b3c /libs/androidfw/ResourceTimer.cpp
parenta3dfcbed6fb3e463f4cba188f7498f9273b70576 (diff)
Use isVisibleRequested to replace with isAnimating for IME picker dialog
In CL[1] to fix IME picker dialog may still be selected as the focus window when quick-switch to the next app from the IME layering target. Since even though the dialog surface is attached to the app where the surface hierarchy is lower than the next app, the dialog is a system window where the window hierarchy is higher than the next app. Previously we use isAnimating to check if the IME layering target is in transition state, which may costly and not reliable. In order to check if the IME layering target is leaving more efficiently, use isVisibleRequested to replace with isAnimating state and it also benefits when in shell-transition. [1]: I771d9817cd6dfcb1bf0d576d94bea9d1b9adc80e Bug: 212570341 Test: atest DisplayContentTests#\ testImeMenuDialogFocusWhenImeLayeringTargetChanges Test: manual, ensure Bug 195073688 won't happen with enabling shell-transition Change-Id: I6857c13ab8bbd0ca84d0e145fc783d4e64b8dcee
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions