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

master
Andreas Shimokawa 2017-05-01 17:33:34 +02:00
parent 07c61e6bcb
commit b475fd2dc7
1 changed files with 1 additions and 1 deletions

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();
}
}
}