aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-11-17 22:48:03 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-17 22:48:03 -0800
commita305cd62ddf70c1ec6202526f3b872ec6711eb95 (patch)
tree47991aa833e44c5e8e83ee58e2254c98b54ef22c /java/src
parent0eacb9c844e0ff2bbb4b6d8fdfa1b60894db2cf9 (diff)
parent10dff76856a98b6eec86a53d3d07fdc9708037b7 (diff)
downloadlatinime-a305cd62ddf70c1ec6202526f3b872ec6711eb95.tar.gz
latinime-a305cd62ddf70c1ec6202526f3b872ec6711eb95.tar.xz
latinime-a305cd62ddf70c1ec6202526f3b872ec6711eb95.zip
am 10dff768: Fix NPE introduced by I38b21d49
* commit '10dff76856a98b6eec86a53d3d07fdc9708037b7': Fix NPE introduced by I38b21d49
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java19
1 files changed, 11 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index dbd850561..7c27fe957 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -245,18 +245,20 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
private static final int MSG_SET_BIGRAM_PREDICTIONS = 7;
private static final int MSG_PENDING_IMS_CALLBACK = 8;
- private final int mDelayBeforeFadeoutLanguageOnSpacebar;
- private final int mDelayUpdateSuggestions;
- private final int mDelayUpdateShiftState;
- private final int mDurationOfFadeoutLanguageOnSpacebar;
- private final float mFinalFadeoutFactorOfLanguageOnSpacebar;
- private final long mDoubleSpacesTurnIntoPeriodTimeout;
- private final long mIgnoreSpecialKeyTimeout;
+ private int mDelayBeforeFadeoutLanguageOnSpacebar;
+ private int mDelayUpdateSuggestions;
+ private int mDelayUpdateShiftState;
+ private int mDurationOfFadeoutLanguageOnSpacebar;
+ private float mFinalFadeoutFactorOfLanguageOnSpacebar;
+ private long mDoubleSpacesTurnIntoPeriodTimeout;
+ private long mIgnoreSpecialKeyTimeout;
public UIHandler(LatinIME outerInstance) {
super(outerInstance);
+ }
- final Resources res = outerInstance.getResources();
+ public void onCreate() {
+ final Resources res = getOuterInstance().getResources();
mDelayBeforeFadeoutLanguageOnSpacebar = res.getInteger(
R.integer.config_delay_before_fadeout_language_on_spacebar);
mDelayUpdateSuggestions =
@@ -497,6 +499,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
mSubtypeSwitcher = SubtypeSwitcher.getInstance();
mKeyboardSwitcher = KeyboardSwitcher.getInstance();
mVibrator = VibratorCompatWrapper.getInstance(this);
+ mHandler.onCreate();
DEBUG = LatinImeLogger.sDBG;
final Resources res = getResources();