enable bluetooth by default

This commit is contained in:
MajorCrazed
2017-11-02 13:30:54 +01:00
parent 1e9afd14db
commit bb8713ddcb
2 changed files with 2 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ class DroidtoothPlugin implements DuplexPlugin, EventListener {
bind();
} else {
// Enable Bluetooth if settings allow
if (callback.getSettings().getBoolean(PREF_BT_ENABLE, false)) {
if (callback.getSettings().getBoolean(PREF_BT_ENABLE, true)) {
enableAdapter(BluetoothEnableDisableReason.COMMUNICATION);
} else {
LOG.info("Not enabling Bluetooth");

View File

@@ -224,7 +224,7 @@ public class SettingsFragment extends PreferenceFragmentCompat
if (LOG.isLoggable(INFO))
LOG.info("Loading settings took " + duration + " ms");
boolean btSetting =
btSettings.getBoolean(PREF_BT_ENABLE, false);
btSettings.getBoolean(PREF_BT_ENABLE, true);
int torSetting = torSettings.getInt(PREF_TOR_NETWORK,
PREF_TOR_NETWORK_ALWAYS);
displaySettings(btSetting, torSetting);