Merge pull request #3540 from vector-im/feature/bma/fix_composer
Send button does not show up half of the time (#3535)
This commit is contained in:
commit
48002e11b6
|
@ -0,0 +1 @@
|
||||||
|
Send button does not show up half of the time
|
|
@ -73,6 +73,7 @@ class TextComposerView @JvmOverloads constructor(
|
||||||
override fun onTextBlankStateChanged(isBlank: Boolean) {
|
override fun onTextBlankStateChanged(isBlank: Boolean) {
|
||||||
callback?.onTextBlankStateChanged(isBlank)
|
callback?.onTextBlankStateChanged(isBlank)
|
||||||
val shouldBeVisible = currentConstraintSetId == R.layout.composer_layout_constraint_set_expanded || !isBlank
|
val shouldBeVisible = currentConstraintSetId == R.layout.composer_layout_constraint_set_expanded || !isBlank
|
||||||
|
TransitionManager.endTransitions(this@TextComposerView)
|
||||||
if (views.sendButton.isVisible != shouldBeVisible) {
|
if (views.sendButton.isVisible != shouldBeVisible) {
|
||||||
TransitionManager.beginDelayedTransition(
|
TransitionManager.beginDelayedTransition(
|
||||||
this@TextComposerView,
|
this@TextComposerView,
|
||||||
|
|
Loading…
Reference in New Issue