Merge branch 'osmdroid-phase2' of github.com:ScriptTactics/Meshtastic-Android into osmdroid-phase2

This commit is contained in:
PWRxPSYCHO 2022-09-22 08:35:49 -04:00
commit e156bf1f6e
2 changed files with 5 additions and 4 deletions

View file

@ -236,9 +236,10 @@ class BTScanModel @Inject constructor(
devices.value = (testnodes.map { it.fullAddress to it }).toMap().toMutableMap()
// If nothing was selected, by default select the first thing we see
if (selectedAddress == null)
val activity = GeeksvilleApplication.currentActivity
if (selectedAddress == null && activity is MainActivity)
changeScanSelection(
GeeksvilleApplication.currentActivity as MainActivity,
activity,
testnodes.first().fullAddress
)