diff options
author | 2013-01-08 14:58:08 +0900 | |
---|---|---|
committer | 2013-01-08 15:13:19 +0900 | |
commit | b17b88742528d09eaa36adb3dae5348b99c234e0 (patch) | |
tree | 9cf12cd0b9548794ee1d3adc5e059ea16d8d603a /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 28de7223e62fd43d59cbf91fb2422c94e32e9ab0 (diff) | |
download | latinime-b17b88742528d09eaa36adb3dae5348b99c234e0.tar.gz latinime-b17b88742528d09eaa36adb3dae5348b99c234e0.tar.xz latinime-b17b88742528d09eaa36adb3dae5348b99c234e0.zip |
Consolidate VibratorUtils with AudioAndHapticFeedbackManager
Change-Id: Ica4e3193f369330da62a259c718b779ddf9fbde5
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()); |