Merge pull request #4210 from nextcloud/bugfix/noid/fixConnectionLostHint

fix to show connection lost hint when internet is gone
This commit is contained in:
Marcel Hibbe 2024-09-13 18:42:44 +02:00 committed by GitHub
commit af6e058c70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -233,6 +233,7 @@ class MessageInputFragment : Fragment() {
binding.fragmentConnectionLost.clearAnimation()
binding.fragmentConnectionLost.visibility = View.GONE
binding.fragmentConnectionLost.setBackgroundColor(resources.getColor(R.color.hwSecurityRed))
binding.fragmentConnectionLost.text = getString(R.string.connection_lost_sent_messages_are_queued)
binding.fragmentConnectionLost.visibility = View.VISIBLE
binding.fragmentMessageInputView.attachmentButton.isEnabled = false
binding.fragmentMessageInputView.recordAudioButton.isEnabled = false