commit | 5afaad1ab34d77edec65afeb09c5a17ad9be51c6 | [log] [tgz] |
---|---|---|
author | Hung-ying Tyan <tyanh@google.com> | Thu Sep 02 23:42:07 2010 +0800 |
committer | Hung-ying Tyan <tyanh@google.com> | Thu Sep 02 23:42:07 2010 +0800 |
tree | 0c6ab823046e85a18548d4b2270a888e7c7faba0 | |
parent | a6f6cc70e2a07e79df6db368381180c9f714bd71 [diff] |
SipSharedPreferences: add missed SharedPreferences.Editor.apply(). Change-Id: I4aac9abcdf2aecf9dbdb6176bf6ef37262fb72f2
diff --git a/src/com/android/phone/sip/SipSharedPreferences.java b/src/com/android/phone/sip/SipSharedPreferences.java index 7c628b4..8168972 100644 --- a/src/com/android/phone/sip/SipSharedPreferences.java +++ b/src/com/android/phone/sip/SipSharedPreferences.java
@@ -42,7 +42,9 @@ } public void setPrimaryAccount(String accountUri) { - mPreferences.edit().putString(KEY_PRIMARY_ACCOUNT, accountUri); + SharedPreferences.Editor editor = mPreferences.edit(); + editor.putString(KEY_PRIMARY_ACCOUNT, accountUri); + editor.apply(); } /** Returns the primary account URI or null if it does not exist. */