Fix multi-select and voice note headers overlapping.

Resolves #13962
This commit is contained in:
Sagar
2025-02-02 15:24:16 +05:30
committed by Greyson Parrelli
parent 4f8066ca92
commit c2aae5da4d

View File

@@ -54,6 +54,7 @@ import androidx.core.content.ContextCompat
import androidx.core.content.pm.ShortcutManagerCompat
import androidx.core.view.ViewCompat
import androidx.core.view.doOnPreDraw
import androidx.core.view.isInvisible
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentResultListener
@@ -532,7 +533,9 @@ class ConversationFragment :
private val motionEventRelay: MotionEventRelay by viewModels(ownerProducer = { requireActivity() })
private val actionModeCallback = ActionModeCallback()
private val actionModeCallback by lazy {
ActionModeCallback()
}
private val container: InputAwareConstraintLayout
get() = requireView() as InputAwareConstraintLayout
@@ -3644,7 +3647,7 @@ class ConversationFragment :
mode.title = calculateSelectedItemCount()
searchMenuItem?.collapseActionView()
binding.toolbar.visible = false
binding.toolbar.isInvisible = true
if (scheduledMessagesStub.isVisible) {
reShowScheduleMessagesBar = true
scheduledMessagesStub.visibility = View.GONE
@@ -3662,7 +3665,7 @@ class ConversationFragment :
adapter.clearSelection()
setBottomActionBarVisibility(false)
binding.toolbar.visible = true
binding.toolbar.isInvisible = false
if (reShowScheduleMessagesBar) {
scheduledMessagesStub.visibility = View.VISIBLE
reShowScheduleMessagesBar = false