OSDN Git Service

Show IME switcher also when hardware keyboard is connected.
authorYohei Yukawa <yukawa@google.com>
Tue, 12 May 2015 22:00:33 +0000 (15:00 -0700)
committerYohei Yukawa <yukawa@google.com>
Tue, 12 May 2015 22:05:45 +0000 (15:05 -0700)
commitc6c7cd2736fc3b6511e329a969409622750f2a58
treeeb200e066a5921bc48fd792e8420df19aee32808
parentf038295e98846e3e359854b1642b362643bd6053
Show IME switcher also when hardware keyboard is connected.

As per discussion with UX team, we start showing IME switcher UI
not only when there are multiple IMEs are enabled but also when
a hardware keyboard is connected.

This CL also simplifies needsToShowImeSwitchOngoingNotification()
by renaming it with shouldShowImeSwitcherLocked() and unifying
related condition checking into that method.

Bug: 19496012
Change-Id: Id44724a2a46190382c283a52ece8edffb740807d
services/core/java/com/android/server/InputMethodManagerService.java