Skip to content

Commit

Permalink
Fixes Overlapping Conversation Banner Position for Hidden Toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagar0-0 committed Feb 7, 2025
1 parent 553d783 commit e61af6e
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 @@ -3643,7 +3646,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 @@ -3661,7 +3664,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 e61af6e

Please sign in to comment.