diff options
author | Ricardo Cerqueira <ricardo@cyngn.com> | 2016-02-03 15:50:26 +0000 |
---|---|---|
committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2016-02-03 15:50:26 +0000 |
commit | 4b977b24941bd5c0d438801bc8d46f670f5ad1ee (patch) | |
tree | 3e8d9d855e90876fd238cd45b84e9793c4f08284 /src/com/android/settings/bluetooth | |
parent | 2c021b1863ce69d689a586050ac61338dc742853 (diff) | |
download | packages_apps_Settings-4b977b24941bd5c0d438801bc8d46f670f5ad1ee.zip packages_apps_Settings-4b977b24941bd5c0d438801bc8d46f670f5ad1ee.tar.gz packages_apps_Settings-4b977b24941bd5c0d438801bc8d46f670f5ad1ee.tar.bz2 |
Bluetooth: Underp "Accept all files" setting
This was reading/writing to the wrong database, making the setting
a no-op. My bad.
Still CYNGNOS-1825
Change-Id: Ibf02b186f8e19066b0113ab1c72e31164a686af1
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r-- | src/com/android/settings/bluetooth/BluetoothSettings.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java index ec615e8..d08cb34 100644 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -274,7 +274,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem int textId = isDiscovering ? R.string.bluetooth_searching_for_devices : R.string.bluetooth_search_for_devices; - boolean isAcceptAllFilesEnabled = Settings.System.getInt(getContentResolver(), + boolean isAcceptAllFilesEnabled = CMSettings.System.getInt(getContentResolver(), CMSettings.System.BLUETOOTH_ACCEPT_ALL_FILES, 0) == 1; menu.add(Menu.NONE, MENU_ID_SCAN, 0, textId) @@ -316,7 +316,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem case MENU_ID_ACCEPT_ALL_FILES: item.setChecked(!item.isChecked()); - Settings.System.putInt(getContentResolver(), + CMSettings.System.putInt(getContentResolver(), CMSettings.System.BLUETOOTH_ACCEPT_ALL_FILES, item.isChecked() ? 1 : 0); return true; |