am 38f6ff42: am 0e300c83: Avoid a disk write on UI thread
Merge commit '38f6ff4289933aaa54461f72ba14d33ad1d6c5d7' * commit '38f6ff4289933aaa54461f72ba14d33ad1d6c5d7': Avoid a disk write on UI threadmain
commit
6fff167a8d
|
@ -188,7 +188,7 @@ public class LanguageSwitcher {
|
||||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mIme);
|
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mIme);
|
||||||
Editor editor = sp.edit();
|
Editor editor = sp.edit();
|
||||||
editor.putString(LatinIME.PREF_INPUT_LANGUAGE, getInputLanguage());
|
editor.putString(LatinIME.PREF_INPUT_LANGUAGE, getInputLanguage());
|
||||||
editor.commit();
|
editor.apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
static String toTitleCase(String s) {
|
static String toTitleCase(String s) {
|
||||||
|
|
Loading…
Reference in New Issue