mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user