Merge "Guard accessibility function calls"

main
Tadashi G. Takaoka 2014-05-01 08:08:48 +00:00 committed by Android (Google) Code Review
commit 20770f4ba0
1 changed files with 3 additions and 1 deletions

View File

@ -772,8 +772,10 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
} }
public void onHideWindow() { public void onHideWindow() {
if (AccessibilityUtils.getInstance().isAccessibilityEnabled()) {
mAccessibilityDelegate.onHideWindow(); mAccessibilityDelegate.onHideWindow();
} }
}
/** /**
* Receives hover events from the input framework. * Receives hover events from the input framework.