mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-31 04:04:46 -04:00
update isConnected logic
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user