From 4db838b5e3878a4b1aafe3681f0b237221f690fe Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Mon, 1 Feb 2021 23:01:15 +0800 Subject: [PATCH] when in sim, allow user to toggle between service on and off --- .../main/java/com/geeksville/mesh/ui/SettingsFragment.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/SettingsFragment.kt b/app/src/main/java/com/geeksville/mesh/ui/SettingsFragment.kt index 26cb3263c..78f772151 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/SettingsFragment.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/SettingsFragment.kt @@ -270,8 +270,12 @@ class BTScanModel(app: Application) : AndroidViewModel(app), Logging { val testnodes = listOf( DeviceListEntry("Simulated interface", "m", true), + DeviceListEntry(context.getString(R.string.none), "n", true) + /* Don't populate fake bluetooth devices, because we don't want testlab inside of google + to try and use them. + DeviceListEntry("Meshtastic_ab12", "xaa", false), - DeviceListEntry("Meshtastic_32ac", "xbb", true) + DeviceListEntry("Meshtastic_32ac", "xbb", true) */ ) devices.value = (testnodes.map { it.address to it }).toMap().toMutableMap()