mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
update isConnected logic
This commit is contained in:
parent
d538c2afff
commit
e816b03f47
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ class MessagesFragment : Fragment(), Logging {
|
|||
// If connection state _OR_ myID changes we have to fix our ability to edit outgoing messages
|
||||
model.connectionState.observe(viewLifecycleOwner) { connectionState ->
|
||||
// If we don't know our node ID and we are offline don't let user try to send
|
||||
isConnected = connectionState == MeshService.ConnectionState.CONNECTED
|
||||
isConnected = connectionState != MeshService.ConnectionState.DISCONNECTED
|
||||
binding.textInputLayout.isEnabled = isConnected
|
||||
binding.sendButton.isEnabled = isConnected
|
||||
for (subView: View in binding.quickChatLayout.allViews) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue