Skip to content
Snippets Groups Projects
Commit 0e300c83 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Avoid a disk write on UI thread

bug: 2983837
Change-Id: I4eca20fb4defcf149788032a98fe5894b57e1e19
parent 2dd905b3
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ public class LanguageSwitcher {
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mIme);
Editor editor = sp.edit();
editor.putString(LatinIME.PREF_INPUT_LANGUAGE, getInputLanguage());
editor.commit();
editor.apply();
}
static String toTitleCase(String s) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment