Fixed default preference issue.

Change-Id: I6d12bc054fde0fe3ea03b673e7b5b7d7f8db8d54
This commit is contained in:
Yohei Fujii 2010-08-17 18:07:54 +09:00
parent fda1ae71b5
commit c9a181b1b3

View file

@ -345,6 +345,7 @@ 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);