Just disconnect if bluetooth gets turned off, do not quit all activities.
This commit is contained in:
parent
07c61e6bcb
commit
b475fd2dc7
|
@ -50,7 +50,7 @@ public class BluetoothStateChangeReceiver extends BroadcastReceiver {
|
||||||
LOG.info("Bluetooth turned on => connecting...");
|
LOG.info("Bluetooth turned on => connecting...");
|
||||||
GBApplication.deviceService().connect();
|
GBApplication.deviceService().connect();
|
||||||
} else if (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1) == BluetoothAdapter.STATE_OFF) {
|
} else if (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1) == BluetoothAdapter.STATE_OFF) {
|
||||||
GBApplication.quit();
|
GBApplication.deviceService().disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue