Updated bluetooth scanning text

This commit is contained in:
Mark Qvist 2025-07-14 20:37:58 +02:00
parent 73601ebe1e
commit f0ec8fde42
2 changed files with 3 additions and 2 deletions

View file

@ -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 "):