mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-09 02:35:05 -05:00
Updated bluetooth scanning text
This commit is contained in:
parent
73601ebe1e
commit
f0ec8fde42
2 changed files with 3 additions and 2 deletions
|
|
@ -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 "):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue