From 1ead609e6fd64fd5ac2979ac3802d8bada7d7f49 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Thu, 1 May 2014 17:06:40 +0900 Subject: [PATCH] Guard accessibility function calls This is a follow up of I2b0ec091a1. Change-Id: I2801bd1530556cfa6cc176efac9d9f09f2405892 --- .../com/android/inputmethod/keyboard/MainKeyboardView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java b/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java index e24d4e909..8f79a9128 100644 --- a/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java @@ -772,7 +772,9 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack } public void onHideWindow() { - mAccessibilityDelegate.onHideWindow(); + if (AccessibilityUtils.getInstance().isAccessibilityEnabled()) { + mAccessibilityDelegate.onHideWindow(); + } } /**