mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
enable bluetooth by default
This commit is contained in:
@@ -158,7 +158,7 @@ class DroidtoothPlugin implements DuplexPlugin, EventListener {
|
|||||||
bind();
|
bind();
|
||||||
} else {
|
} else {
|
||||||
// Enable Bluetooth if settings allow
|
// Enable Bluetooth if settings allow
|
||||||
if (callback.getSettings().getBoolean(PREF_BT_ENABLE, false)) {
|
if (callback.getSettings().getBoolean(PREF_BT_ENABLE, true)) {
|
||||||
enableAdapter(BluetoothEnableDisableReason.COMMUNICATION);
|
enableAdapter(BluetoothEnableDisableReason.COMMUNICATION);
|
||||||
} else {
|
} else {
|
||||||
LOG.info("Not enabling Bluetooth");
|
LOG.info("Not enabling Bluetooth");
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ public class SettingsFragment extends PreferenceFragmentCompat
|
|||||||
if (LOG.isLoggable(INFO))
|
if (LOG.isLoggable(INFO))
|
||||||
LOG.info("Loading settings took " + duration + " ms");
|
LOG.info("Loading settings took " + duration + " ms");
|
||||||
boolean btSetting =
|
boolean btSetting =
|
||||||
btSettings.getBoolean(PREF_BT_ENABLE, false);
|
btSettings.getBoolean(PREF_BT_ENABLE, true);
|
||||||
int torSetting = torSettings.getInt(PREF_TOR_NETWORK,
|
int torSetting = torSettings.getInt(PREF_TOR_NETWORK,
|
||||||
PREF_TOR_NETWORK_ALWAYS);
|
PREF_TOR_NETWORK_ALWAYS);
|
||||||
displaySettings(btSetting, torSetting);
|
displaySettings(btSetting, torSetting);
|
||||||
|
|||||||
Reference in New Issue
Block a user