OSDN Git Service

Ensure PopupDecorView is not IME-focusable during exit transition.
authorYohei Yukawa <yukawa@google.com>
Mon, 7 Mar 2016 06:27:40 +0000 (22:27 -0800)
committerYohei Yukawa <yukawa@google.com>
Mon, 7 Mar 2016 06:27:40 +0000 (22:27 -0800)
commitdbd299de2a07a2a0a490d4f37cf92870bf87d6c1
treee46581a80084d26c807930f20783f32c05103410
parent77dd59fc2a0db94f0c58e17097fd6f07c1b5db8c
Ensure PopupDecorView is not IME-focusable during exit transition.

Currently PopupDecorView temporarily gets FLAG_NOT_FOCUSABLE bit during
exit transition.  When doing this we it is important that PopupDecorView
does not have FLAG_ALT_FOCUSABLE_IM bit, because having both
FLAG_NOT_FOCUSABLE and FLAG_ALT_FOCUSABLE_IM means that PopupDecorView
is IME-focusable.

To prevent IMEs from flickering, this CL ensures that PopupDecorView is
not IME-focusable during exit transition.

Bug: 27396330
Change-Id: I0cc81791b826f7d4257f0b6085c028c796fd9536
core/java/android/widget/PopupWindow.java