mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
Don't crash if the app doesn't have Bluetooth permissions
This commit is contained in:
@@ -366,7 +366,11 @@ public class HIDDeviceManager {
|
||||
}
|
||||
|
||||
protected void shutdownBluetooth() {
|
||||
mContext.unregisterReceiver(mBluetoothBroadcast);
|
||||
try {
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user