kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
cope with malformatted broadcasts
rodzic
7d898481a6
commit
7e21d63044
|
@ -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()
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue