am 38f6ff42: am 0e300c83: Avoid a disk write on UI thread

Merge commit '38f6ff4289933aaa54461f72ba14d33ad1d6c5d7'

* commit '38f6ff4289933aaa54461f72ba14d33ad1d6c5d7':
  Avoid a disk write on UI thread
main
Ken Wakasa 2010-09-08 20:40:30 -07:00 committed by Android Git Automerger
commit 6fff167a8d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {