Merge branch 'sc' into unifiedpush

Change-Id: Id7b4d4d7e5e74cf2e0e13e44f977e1efb0f61044
This commit is contained in:
SpiritCroc 2021-08-14 11:14:14 +02:00
commit a59efc0c9f
1 changed files with 2 additions and 0 deletions

View File

@ -85,10 +85,12 @@ class TextComposerView @JvmOverloads constructor(
val shouldShowSendButton = currentConstraintSetId == R.layout.composer_layout_constraint_set_expanded || !isBlank || alwaysShowSendButton
TransitionManager.endTransitions(this@TextComposerView)
if (views.sendButton.isVisible != shouldShowSendButton) {
/* This causes some weird layout bug when using gboard clipboard to paste longer texts
TransitionManager.beginDelayedTransition(
this@TextComposerView,
AutoTransition().also { it.duration = 150 }
)
*/
views.sendButton.isInvisible = !shouldShowSendButton
}
updateSendButtonColor(isBlank)