aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-01-07 23:01:15 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-01-07 23:01:15 -0800
commita1b08032a8e8add34803b627a1736dcc57675655 (patch)
tree3099c84bd7d37eb3e009bc6de8f12f1a7aafb5fc /java/src/com/android/inputmethod/latin/LatinIME.java
parent73d639243e16cf3cec475b84bc58e6d267d94abc (diff)
parent4b852d60447901ce2f6e9ffe03a35f44fbb96f44 (diff)
downloadlatinime-a1b08032a8e8add34803b627a1736dcc57675655.tar.gz
latinime-a1b08032a8e8add34803b627a1736dcc57675655.tar.xz
latinime-a1b08032a8e8add34803b627a1736dcc57675655.zip
am 4b852d60: Merge "Consolidate VibratorUtils with AudioAndHapticFeedbackManager"
* commit '4b852d60447901ce2f6e9ffe03a35f44fbb96f44': 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.java6
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());