OSDN Git Service

Make sure that Toast is always shown by Meta-Space.
authorYohei Yukawa <yukawa@google.com>
Tue, 12 Apr 2016 08:19:31 +0000 (01:19 -0700)
committerYohei Yukawa <yukawa@google.com>
Tue, 12 Apr 2016 08:19:31 +0000 (01:19 -0700)
commitb2f901ab222b8a7193f9a17cb06232f73cf20518
tree1d276b393130a33766762b618211c374ba2c6b6d
parente544d408c06fe3e6bc3b237f718b56f03f079f29
Make sure that Toast is always shown by Meta-Space.

It turns out that my previous CL [1] does not always show Toast when
Meta-Space is hit multiple times in a short period.  With this CL, we
attempt to make sure that the Toast is shown every time when Meta-Space
rotates the current IME subtype.

This CL also removes a rule that we do not show Toast when the IME
window has InputMethodService.IME_VISIBLE bit as it turns out to be
confusing.  In Android N, we just provide a consistent behavior
no matter the IME window is visible or not.

 [1]: If3fe17adbffe4c1125783fc77fed3cfe78fc7933
      ebda7d7ae14b09bf15cc5f601ea44f903c782a9a

Bug: 27547054
Bug: 28127795
Change-Id: I551c51cd672dba6e7693d23cb181007f51b0de9d
services/core/java/com/android/server/InputMethodManagerService.java