aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-08-12 22:28:53 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-08-13 15:33:07 +0900
commit3659c70fc3174b00ac24e105677d7e480596bf56 (patch)
treef2e11ef2c4a2f79e2859c2b0497547074f64803a /java/src/com/android/inputmethod/latin/LatinIME.java
parent89a214544853f16ef5d979bd1503d370ea5ff39d (diff)
downloadlatinime-3659c70fc3174b00ac24e105677d7e480596bf56.tar.gz
latinime-3659c70fc3174b00ac24e105677d7e480596bf56.tar.xz
latinime-3659c70fc3174b00ac24e105677d7e480596bf56.zip
Add debug setting to force hardware special key
Bug: 13988700 Change-Id: If23f8a14097431e76a303a6d6c24e8d9835fb655
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 9b629ca14..91b01b506 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -155,7 +155,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@UsedForTesting final KeyboardSwitcher mKeyboardSwitcher;
private final SubtypeSwitcher mSubtypeSwitcher;
private final SubtypeState mSubtypeState = new SubtypeState();
- private final SpecialKeyDetector mSpecialKeyDetector = new SpecialKeyDetector();
+ private final SpecialKeyDetector mSpecialKeyDetector;
// Object for reacting to adding/removing a dictionary pack.
private final BroadcastReceiver mDictionaryPackInstallReceiver =
@@ -517,6 +517,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mSettings = Settings.getInstance();
mSubtypeSwitcher = SubtypeSwitcher.getInstance();
mKeyboardSwitcher = KeyboardSwitcher.getInstance();
+ mSpecialKeyDetector = new SpecialKeyDetector(this);
mIsHardwareAcceleratedDrawingEnabled =
InputMethodServiceCompatUtils.enableHardwareAcceleration(this);
Log.i(TAG, "Hardware accelerated drawing: " + mIsHardwareAcceleratedDrawingEnabled);