Suppress redundant TYPE_WINDOWS_STATE_CHANGED.

Bug: 23975618
Change-Id: I5933beaa5b28404f85e100461bdeab5496eb3c0e
main
Yohei Yukawa 2016-02-02 13:50:57 -08:00
parent 5074304dbd
commit 38b15afb47
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ public final class MainKeyboardAccessibilityDelegate
* Called when the keyboard is hidden and accessibility is enabled.
*/
public void onHideWindow() {
announceKeyboardHidden();
if (mLastKeyboardMode != KEYBOARD_IS_HIDDEN) {
announceKeyboardHidden();
}
mLastKeyboardMode = KEYBOARD_IS_HIDDEN;
}