cope with malformatted broadcasts

pull/276/head^2
Kevin Hester 2021-04-02 13:55:41 +08:00
rodzic 7d898481a6
commit 7e21d63044
1 zmienionych plików z 4 dodań i 7 usunięć

Wyświetl plik

@ -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()
}