mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-16 21:06:40 -04:00
clear the device list anytime we restart the BLE scan
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user