mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-06 02:21:20 -04:00
clear the device list anytime we restart the BLE scan
This commit is contained in:
1 parent
3661fd157e
commit
1cd0e1692d
1 file changed
+3
@@ -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