Suppress redundant TYPE_WINDOWS_STATE_CHANGED.

Bug: 23975618
Change-Id: I5933beaa5b28404f85e100461bdeab5496eb3c0e
This commit is contained in:
Yohei Yukawa 2016-02-02 13:50:57 -08:00
parent 5074304dbd
commit 38b15afb47

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;
}