clear the device list anytime we restart the BLE scan

This commit is contained in:
geeksville
2020-06-09 09:11:10 -07:00
parent 3661fd157e
commit 1cd0e1692d

View File

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