mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 18:57:43 +00:00
Fix animation glitch
This commit is contained in:
parent
e0809e5eda
commit
db09a50995
@ -30,6 +30,7 @@ class ConversationTouchHelperCallback(private val adapter: ConversationAdapter,
|
||||
}
|
||||
|
||||
override fun onSwiped(viewHolder: RecyclerView.ViewHolder, direction: Int) {
|
||||
background.alpha = 0
|
||||
adapter.notifyItemChanged(viewHolder.adapterPosition)
|
||||
}
|
||||
|
||||
@ -58,8 +59,6 @@ class ConversationTouchHelperCallback(private val adapter: ConversationAdapter,
|
||||
messageContentView.right + adjustedDistanceInPx.toInt() + iconSize + spacing,
|
||||
itemViewTop + offset + iconSize
|
||||
)
|
||||
} else {
|
||||
//background.setBounds(0, 0, 0, 0)
|
||||
}
|
||||
background.draw(c)
|
||||
// Perform haptic feedback and invoke onSwipe callback if threshold has been reached
|
||||
|
Loading…
x
Reference in New Issue
Block a user