Fix gap under messages

This commit is contained in:
andrew 2023-11-06 12:23:09 +10:30
parent 1c8612c392
commit b0447cf342

View File

@ -21,6 +21,7 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.constraintlayout.widget.ConstraintLayout import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import androidx.core.os.bundleOf import androidx.core.os.bundleOf
import androidx.core.view.isGone
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.core.view.marginBottom import androidx.core.view.marginBottom
import dagger.hilt.android.AndroidEntryPoint import dagger.hilt.android.AndroidEntryPoint
@ -249,6 +250,8 @@ class VisibleMessageView : LinearLayout {
.apply { horizontalBias = if (message.isOutgoing) 1f else 0f } .apply { horizontalBias = if (message.isOutgoing) 1f else 0f }
} }
binding.expirationTimerView.isGone = true
if (message.isOutgoing || disappearing) { if (message.isOutgoing || disappearing) {
val (iconID, iconColor, textId, contentDescription) = getMessageStatusImage(message) val (iconID, iconColor, textId, contentDescription) = getMessageStatusImage(message)
textId?.let(binding.messageStatusTextView::setText) textId?.let(binding.messageStatusTextView::setText)