diff --git a/sbapp/main.py b/sbapp/main.py index 5787300..aa13885 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -1061,7 +1061,8 @@ class SidebandApp(MDApp): if str(action) == "android.bluetooth.device.action.FOUND": if extras: try: - device = intent.getParcelableExtra("android.bluetooth.device.extra.DEVICE", BluetoothDevice) + if android_api_version < 33: device = intent.getParcelableExtra("android.bluetooth.device.extra.DEVICE") + else: device = intent.getParcelableExtra("android.bluetooth.device.extra.DEVICE", BluetoothDevice) dev_name = device.getName() dev_addr = device.getAddress() if dev_name.startswith("RNode "): diff --git a/sbapp/ui/layouts.py b/sbapp/ui/layouts.py index 08f0b5d..a29b580 100644 --- a/sbapp/ui/layouts.py +++ b/sbapp/ui/layouts.py @@ -2579,7 +2579,7 @@ MDScreen: MDLabel: id: hardware_rnode_info markup: True - text: "You must first pair the RNode with your device for this to work. To put an RNode into pairing mode, hold down the multi-function user button for more than 5 seconds, and release it. The display will indicate pairing mode.You can then pair the device using the Bluetooth settings of your device, or by pressing the pairing button below.\\n" + text: "You must first pair the RNode with your device for this to work. To put an RNode into pairing mode, hold down the multi-function user button for more than 5 seconds, and release it. The display will indicate pairing mode.You can then pair the device using the Bluetooth settings of your device, or by pressing the pairing button below. The in-app scanning and pairing is supported on Android 12+. If it doesn't work, use the Bluetooth settings of your device to scan and pair.\\n" size_hint_y: None text_size: self.width, None height: self.texture_size[1]