mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
cope with malformatted broadcasts
This commit is contained in:
parent
7d898481a6
commit
7e21d63044
1 changed files with 4 additions and 7 deletions
|
|
@ -803,13 +803,10 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
}
|
||||
|
||||
MeshService.ACTION_MESH_CONNECTED -> {
|
||||
val connected =
|
||||
MeshService.ConnectionState.valueOf(
|
||||
intent.getStringExtra(
|
||||
EXTRA_CONNECTED
|
||||
)!!
|
||||
)
|
||||
onMeshConnectionChanged(connected)
|
||||
val extra = intent.getStringExtra(EXTRA_CONNECTED)
|
||||
if (extra != null) {
|
||||
onMeshConnectionChanged(MeshService.ConnectionState.valueOf(extra))
|
||||
}
|
||||
}
|
||||
else -> TODO()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue