Skip to content

Commit

Permalink
Fix multi-select and voice note headers overlapping.
Browse files Browse the repository at this point in the history
Resolves #13962
  • Loading branch information
Sagar0-0 authored and greyson-signal committed Feb 11, 2025
1 parent 4f8066c commit c2aae5d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c2aae5d

Please sign in to comment.