Guard accessibility function calls

This is a follow up of I2b0ec091a1.

Change-Id: I2801bd1530556cfa6cc176efac9d9f09f2405892
main
Tadashi G. Takaoka 2014-05-01 17:06:40 +09:00
parent 3903e0d6e8
commit 1ead609e6f
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.