commit | 1eeea0c996026fc156ea067c103a6ac6b3250569 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@android.com> | Thu Aug 26 15:50:42 2010 -0700 |
committer | Brad Fitzpatrick <bradfitz@android.com> | Mon Aug 30 17:59:14 2010 -0700 |
tree | 12e19b2223e4c18e3569468c3e67d9c61b965714 | |
parent | d4e43d78c1064670495658f132ccd975de7c7251 [diff] |
Use new SharedPreferences$Editor.apply() instead of commit(). apply() starts an async disk write and doesn't have a return value but is otherwise identical in observable effects. Change-Id: I247beefae4c1becc6f121247d8f0e51e01f71f97
diff --git a/src/com/android/contacts/ui/ContactsPreferencesActivity.java b/src/com/android/contacts/ui/ContactsPreferencesActivity.java index 5a89745..96218e6 100644 --- a/src/com/android/contacts/ui/ContactsPreferencesActivity.java +++ b/src/com/android/contacts/ui/ContactsPreferencesActivity.java
@@ -845,7 +845,7 @@ Editor editor = mPrefs.edit(); editor.putBoolean(Prefs.DISPLAY_ONLY_PHONES, displayOnlyPhones); - editor.commit(); + editor.apply(); mAdapter.setChildDescripWithPhones(displayOnlyPhones); mAdapter.notifyDataSetChanged();