mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Don't crash if the app doesn't have Bluetooth permissions
This commit is contained in:
parent
2a4999b4bb
commit
c2791fc60d
@ -366,7 +366,11 @@ public class HIDDeviceManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void shutdownBluetooth() {
|
protected void shutdownBluetooth() {
|
||||||
|
try {
|
||||||
mContext.unregisterReceiver(mBluetoothBroadcast);
|
mContext.unregisterReceiver(mBluetoothBroadcast);
|
||||||
|
} catch (Exception e) {
|
||||||
|
// We may not have registered, that's okay
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chromebooks do not pass along ACTION_ACL_CONNECTED / ACTION_ACL_DISCONNECTED properly.
|
// Chromebooks do not pass along ACTION_ACL_CONNECTED / ACTION_ACL_DISCONNECTED properly.
|
||||||
|
Loading…
Reference in New Issue
Block a user