mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
new cleaner approach of not whacking services seems to aprox work
This commit is contained in:
parent
dabda9d29e
commit
62a64dd782
5 changed files with 21 additions and 10 deletions
|
|
@ -36,9 +36,9 @@ object SLogging : Logging {}
|
|||
|
||||
/// Change to a new macaddr selection, updating GUI and radio
|
||||
fun changeDeviceSelection(context: MainActivity, newAddr: String?) {
|
||||
model.meshService?.let { service ->
|
||||
service.setDeviceAddress(context, newAddr)
|
||||
|
||||
// FIXME, this is a kinda yucky way to find the service
|
||||
context.model.meshService?.let { service ->
|
||||
service.setDeviceAddress(newAddr)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -317,8 +317,6 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
|||
reportError("Clicked Report A Bug")
|
||||
}
|
||||
.show()
|
||||
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue