Use new 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: I0f528607319d7eb5136bb11fce0b24d8741ccdf9
This commit is contained in:
Brad Fitzpatrick
2010-09-14 09:26:51 -07:00
parent e714898a1a
commit c5c8dad0af
5 changed files with 9 additions and 10 deletions

View File

@@ -277,7 +277,7 @@ public class RequestPermissionActivity extends Activity implements
editor.putLong(
BluetoothDiscoverableEnabler.SHARED_PREFERENCES_KEY_DISCOVERABLE_END_TIMESTAMP,
endTimestamp);
editor.commit();
editor.apply();
}
@Override