From c21b19f49f20227d2b9659ebbe3a483c87189e6e Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 21 Jun 2021 14:06:43 +0200 Subject: [PATCH] Send button does not show up half of the time (#3535) --- changelog.d/3535.feature | 1 + .../app/features/home/room/detail/composer/TextComposerView.kt | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/3535.feature diff --git a/changelog.d/3535.feature b/changelog.d/3535.feature new file mode 100644 index 0000000000..840f938acf --- /dev/null +++ b/changelog.d/3535.feature @@ -0,0 +1 @@ +Send button does not show up half of the time \ No newline at end of file diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerView.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerView.kt index fa5e736c1c..033eb12563 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerView.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerView.kt @@ -73,6 +73,7 @@ class TextComposerView @JvmOverloads constructor( override fun onTextBlankStateChanged(isBlank: Boolean) { callback?.onTextBlankStateChanged(isBlank) val shouldBeVisible = currentConstraintSetId == R.layout.composer_layout_constraint_set_expanded || !isBlank + TransitionManager.endTransitions(this@TextComposerView) if (views.sendButton.isVisible != shouldBeVisible) { TransitionManager.beginDelayedTransition( this@TextComposerView,