Avoid a disk write on UI thread

bug: 2983837
Change-Id: I4eca20fb4defcf149788032a98fe5894b57e1e19
main
Ken Wakasa 2010-09-09 11:57:55 +09:00
parent 2dd905b3c7
commit 0e300c83a1
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) {