mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
filter out null bluetooth names
This commit is contained in:
parent
ed4862a135
commit
4632b8f956
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ class BTScanModel @Inject constructor(
|
|||
@SuppressLint("MissingPermission")
|
||||
private fun addBluetoothDevices() {
|
||||
bluetoothRepository.getBondedDevices()
|
||||
?.filter { it.name.matches(Regex(BLE_NAME_PATTERN)) }
|
||||
?.filter { it.name != null && it.name.matches(Regex(BLE_NAME_PATTERN)) }
|
||||
?.forEach {
|
||||
addDevice(DeviceListEntry(it.name, "x${it.address}", true))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue