commit | 3942a32aa64735f57a05cb981e756573e9fd8e22 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@android.com> | Thu Aug 26 13:52:52 2010 -0700 |
committer | Brad Fitzpatrick <bradfitz@android.com> | Thu Aug 26 13:52:52 2010 -0700 |
tree | b555379f62f564db647b801a9d922a74d8814df0 | |
parent | 4023e7f7c93a926213b4faa88a4d7dd0af194ca2 [diff] |
Use new startCommit() instead of commit(). startCommit() starts an async disk write and doesn't have a return value but is otherwise identical in observable effects. Change-Id: Ie36f295dcf2439692889261495b0bd147c260a59
diff --git a/src/com/android/phone/CallFeaturesSetting.java b/src/com/android/phone/CallFeaturesSetting.java index 8aefaf1..ac69a0f 100644 --- a/src/com/android/phone/CallFeaturesSetting.java +++ b/src/com/android/phone/CallFeaturesSetting.java
@@ -1665,7 +1665,7 @@ } else { editor.putInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, 0); } - editor.commit(); + editor.startCommit(); } /**
diff --git a/src/com/android/phone/sip/SipSettings.java b/src/com/android/phone/sip/SipSettings.java index ab45c5c..10f2c8b 100644 --- a/src/com/android/phone/sip/SipSettings.java +++ b/src/com/android/phone/sip/SipSettings.java
@@ -168,7 +168,7 @@ boolean enabled = ((CheckBoxPreference) preference).isChecked(); mSettingsEditor.putBoolean(flag, enabled); - mSettingsEditor.commit(); + mSettingsEditor.startCommit(); if (clickEvent != null) clickEvent.handle(enabled); return true; }