kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix activity call outside MainActivity
rodzic
706c7d120e
commit
86c9ca55dd
|
@ -236,9 +236,10 @@ class BTScanModel @Inject constructor(
|
||||||
devices.value = (testnodes.map { it.fullAddress to it }).toMap().toMutableMap()
|
devices.value = (testnodes.map { it.fullAddress to it }).toMap().toMutableMap()
|
||||||
|
|
||||||
// If nothing was selected, by default select the first thing we see
|
// 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(
|
changeScanSelection(
|
||||||
GeeksvilleApplication.currentActivity as MainActivity,
|
activity,
|
||||||
testnodes.first().fullAddress
|
testnodes.first().fullAddress
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue