am 10dff768
: Fix NPE introduced by I38b21d49
* commit '10dff76856a98b6eec86a53d3d07fdc9708037b7': Fix NPE introduced by I38b21d49
This commit is contained in:
commit
5dc318a3f2
1 changed files with 11 additions and 8 deletions
|
@ -255,18 +255,20 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
private static final int MSG_SET_BIGRAM_PREDICTIONS = 7;
|
private static final int MSG_SET_BIGRAM_PREDICTIONS = 7;
|
||||||
private static final int MSG_PENDING_IMS_CALLBACK = 8;
|
private static final int MSG_PENDING_IMS_CALLBACK = 8;
|
||||||
|
|
||||||
private final int mDelayBeforeFadeoutLanguageOnSpacebar;
|
private int mDelayBeforeFadeoutLanguageOnSpacebar;
|
||||||
private final int mDelayUpdateSuggestions;
|
private int mDelayUpdateSuggestions;
|
||||||
private final int mDelayUpdateShiftState;
|
private int mDelayUpdateShiftState;
|
||||||
private final int mDurationOfFadeoutLanguageOnSpacebar;
|
private int mDurationOfFadeoutLanguageOnSpacebar;
|
||||||
private final float mFinalFadeoutFactorOfLanguageOnSpacebar;
|
private float mFinalFadeoutFactorOfLanguageOnSpacebar;
|
||||||
private final long mDoubleSpacesTurnIntoPeriodTimeout;
|
private long mDoubleSpacesTurnIntoPeriodTimeout;
|
||||||
private final long mIgnoreSpecialKeyTimeout;
|
private long mIgnoreSpecialKeyTimeout;
|
||||||
|
|
||||||
public UIHandler(LatinIME outerInstance) {
|
public UIHandler(LatinIME outerInstance) {
|
||||||
super(outerInstance);
|
super(outerInstance);
|
||||||
|
}
|
||||||
|
|
||||||
final Resources res = outerInstance.getResources();
|
public void onCreate() {
|
||||||
|
final Resources res = getOuterInstance().getResources();
|
||||||
mDelayBeforeFadeoutLanguageOnSpacebar = res.getInteger(
|
mDelayBeforeFadeoutLanguageOnSpacebar = res.getInteger(
|
||||||
R.integer.config_delay_before_fadeout_language_on_spacebar);
|
R.integer.config_delay_before_fadeout_language_on_spacebar);
|
||||||
mDelayUpdateSuggestions =
|
mDelayUpdateSuggestions =
|
||||||
|
@ -507,6 +509,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
mSubtypeSwitcher = SubtypeSwitcher.getInstance();
|
mSubtypeSwitcher = SubtypeSwitcher.getInstance();
|
||||||
mKeyboardSwitcher = KeyboardSwitcher.getInstance();
|
mKeyboardSwitcher = KeyboardSwitcher.getInstance();
|
||||||
mVibrator = VibratorCompatWrapper.getInstance(this);
|
mVibrator = VibratorCompatWrapper.getInstance(this);
|
||||||
|
mHandler.onCreate();
|
||||||
DEBUG = LatinImeLogger.sDBG;
|
DEBUG = LatinImeLogger.sDBG;
|
||||||
|
|
||||||
final Resources res = getResources();
|
final Resources res = getResources();
|
||||||
|
|
Loading…
Reference in a new issue