diff options
Diffstat (limited to 'src/com/android/settings/bluetooth/LocalBluetoothManager.java')
-rw-r--r-- | src/com/android/settings/bluetooth/LocalBluetoothManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/settings/bluetooth/LocalBluetoothManager.java b/src/com/android/settings/bluetooth/LocalBluetoothManager.java index 2ffb139..97e823e 100644 --- a/src/com/android/settings/bluetooth/LocalBluetoothManager.java +++ b/src/com/android/settings/bluetooth/LocalBluetoothManager.java @@ -356,7 +356,7 @@ public class LocalBluetoothManager { deviceAddress); editor.putLong(LocalBluetoothManager.SHARED_PREFERENCES_KEY_LAST_SELECTED_DEVICE_TIME, System.currentTimeMillis()); - editor.commit(); + editor.apply(); } public boolean hasDockAutoConnectSetting(String addr) { @@ -371,12 +371,12 @@ public class LocalBluetoothManager { public void saveDockAutoConnectSetting(String addr, boolean autoConnect) { SharedPreferences.Editor editor = getSharedPreferences().edit(); editor.putBoolean(SHARED_PREFERENCES_KEY_DOCK_AUTO_CONNECT + addr, autoConnect); - editor.commit(); + editor.apply(); } public void removeDockAutoConnectSetting(String addr) { SharedPreferences.Editor editor = getSharedPreferences().edit(); editor.remove(SHARED_PREFERENCES_KEY_DOCK_AUTO_CONNECT + addr); - editor.commit(); + editor.apply(); } } |