aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-08-13 09:14:37 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-13 09:14:37 +0000
commit7e34709a924800d569bdf3b1840e84ee4a511989 (patch)
treeb258346e6b06e4f9a188ce5ace5b1de80684d305 /java/src/com/android/inputmethod/latin/LatinIME.java
parentbdb05cc89f63f4f3956936fa062d0b4555aa072a (diff)
parenta696c924776cea07ec52ed9448dd16d813eddd72 (diff)
downloadlatinime-7e34709a924800d569bdf3b1840e84ee4a511989.tar.gz
latinime-7e34709a924800d569bdf3b1840e84ee4a511989.tar.xz
latinime-7e34709a924800d569bdf3b1840e84ee4a511989.zip
am a696c924: (DO NOT MERGE) Add debug setting to force hardware special key
* commit 'a696c924776cea07ec52ed9448dd16d813eddd72': (DO NOT MERGE) Add debug setting to force hardware special key
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);