mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 03:11:10 +01:00
Prevent all menu invalidations if we have requested a conversation search.
This commit is contained in:
@@ -701,17 +701,9 @@ class ConversationSettingsFragment : DSLSettingsFragment(
|
||||
override fun getAnimationState(recyclerView: RecyclerView): AnimationState {
|
||||
val layoutManager = recyclerView.layoutManager as LinearLayoutManager
|
||||
|
||||
// If first visible item position is 0
|
||||
// If less than actionbarsize is visible
|
||||
// SHOW
|
||||
// else
|
||||
// HIDE
|
||||
// else
|
||||
// HIDE
|
||||
|
||||
return if (layoutManager.findFirstVisibleItemPosition() == 0) {
|
||||
val firstChild = requireNotNull(layoutManager.getChildAt(0))
|
||||
firstChild.getDrawingRect(rect)
|
||||
firstChild.getLocalVisibleRect(rect)
|
||||
|
||||
if (rect.height() <= actionBarSize) {
|
||||
AnimationState.SHOW
|
||||
|
||||
Reference in New Issue
Block a user