diff options
author | 2013-01-07 23:00:04 -0800 | |
---|---|---|
committer | 2013-01-07 23:00:04 -0800 | |
commit | 4b852d60447901ce2f6e9ffe03a35f44fbb96f44 (patch) | |
tree | 411388d856c2a9e22d89b5582bb8939fc10779fb /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 26f2e453a7bbdb41943254f0149d5ea1078125c7 (diff) | |
parent | b17b88742528d09eaa36adb3dae5348b99c234e0 (diff) | |
download | latinime-4b852d60447901ce2f6e9ffe03a35f44fbb96f44.tar.gz latinime-4b852d60447901ce2f6e9ffe03a35f44fbb96f44.tar.xz latinime-4b852d60447901ce2f6e9ffe03a35f44fbb96f44.zip |
Merge "Consolidate VibratorUtils with AudioAndHapticFeedbackManager"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index f65bbe4a1..eeb08d942 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -421,6 +421,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction mRichImm = RichInputMethodManager.getInstance(); SubtypeSwitcher.init(this); KeyboardSwitcher.init(this); + AudioAndHapticFeedbackManager.init(this); AccessibilityUtils.init(this); super.onCreate(); @@ -461,12 +462,13 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // Note that the calling sequence of onCreate() and onCurrentInputMethodSubtypeChanged() // is not guaranteed. It may even be called at the same time on a different thread. if (null == mPrefs) mPrefs = PreferenceManager.getDefaultSharedPreferences(this); + final SharedPreferences prefs = mPrefs; final InputAttributes inputAttributes = new InputAttributes(getCurrentInputEditorInfo(), isFullscreenMode()); final RunInLocale<SettingsValues> job = new RunInLocale<SettingsValues>() { @Override - protected SettingsValues job(Resources res) { - return new SettingsValues(mPrefs, inputAttributes, LatinIME.this); + protected SettingsValues job(final Resources res) { + return new SettingsValues(prefs, res, inputAttributes); } }; mCurrentSettings = job.runInLocale(mResources, mSubtypeSwitcher.getCurrentSubtypeLocale()); |