1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 09:17:29 +01:00

Just disconnect if bluetooth gets turned off, do not quit all activities.

This commit is contained in:
Andreas Shimokawa 2017-05-01 17:33:34 +02:00
parent 07c61e6bcb
commit b475fd2dc7

View File

@ -50,7 +50,7 @@ public class BluetoothStateChangeReceiver extends BroadcastReceiver {
LOG.info("Bluetooth turned on => connecting...");
GBApplication.deviceService().connect();
} else if (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1) == BluetoothAdapter.STATE_OFF) {
GBApplication.quit();
GBApplication.deviceService().disconnect();
}
}
}