add option to force enable or disable bluetooth adapter

This commit is contained in:
MajorCrazed
2017-10-29 23:30:47 +01:00
parent e6b1597fa7
commit cefe2b09e0
5 changed files with 56 additions and 15 deletions

View File

@@ -326,8 +326,8 @@ public class SettingsFragment extends PreferenceFragmentCompat
}
private void enableOrDisableBluetooth(boolean enable) {
if (enable) eventBus.broadcast(new EnableBluetoothEvent());
else eventBus.broadcast(new DisableBluetoothEvent());
if (enable) eventBus.broadcast(new EnableBluetoothEvent(true));
else eventBus.broadcast(new DisableBluetoothEvent(true));
}
private void storeTorSettings(final int torSetting) {