Fixed the popup default value problem.
Bug:2909517 Change-Id: Ic323d38219a2af211b8a8db09746febe4ccbede9
This commit is contained in:
parent
b9ab7ddd33
commit
e68bba227f
1 changed files with 2 additions and 2 deletions
|
@ -345,7 +345,6 @@ public class LatinIME extends InputMethodService
|
|||
//setStatusIcon(R.drawable.ime_qwerty);
|
||||
mResources = getResources();
|
||||
final Configuration conf = mResources.getConfiguration();
|
||||
PreferenceManager.setDefaultValues(this, R.xml.prefs, false);
|
||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
mLanguageSwitcher = new LanguageSwitcher(this);
|
||||
mLanguageSwitcher.loadLocales(prefs);
|
||||
|
@ -2318,7 +2317,8 @@ public class LatinIME extends InputMethodService
|
|||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
mVibrateOn = sp.getBoolean(PREF_VIBRATE_ON, false);
|
||||
mSoundOn = sp.getBoolean(PREF_SOUND_ON, false);
|
||||
mPopupOn = sp.getBoolean(PREF_POPUP_ON, true);
|
||||
mPopupOn = sp.getBoolean(PREF_POPUP_ON,
|
||||
mResources.getBoolean(R.bool.default_popup_preview));
|
||||
mAutoCap = sp.getBoolean(PREF_AUTO_CAP, true);
|
||||
mQuickFixes = sp.getBoolean(PREF_QUICK_FIXES, true);
|
||||
mHasUsedVoiceInput = sp.getBoolean(PREF_HAS_USED_VOICE_INPUT, false);
|
||||
|
|
Loading…
Reference in a new issue