kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
clear the device list anytime we restart the BLE scan
rodzic
3661fd157e
commit
1cd0e1692d
|
@ -276,6 +276,9 @@ class BTScanModel(app: Application) : AndroidViewModel(app), Logging {
|
|||
if (scanner == null) {
|
||||
debug("starting scan")
|
||||
|
||||
// Clear the old device list
|
||||
devices.value?.clear()
|
||||
|
||||
// Include a placeholder for "None"
|
||||
addDevice(DeviceListEntry(context.getString(R.string.none), "n", true))
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue