mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix crash when accessing binding via delayed runnable.
This commit is contained in:
committed by
Nicholas Tinsley
parent
09813d5dbd
commit
f6bbb59400
@@ -2110,10 +2110,12 @@ class ConversationFragment :
|
||||
fun hide() {
|
||||
pendingHide = true
|
||||
|
||||
binding.scrollDateHeader.postDelayed({
|
||||
val header = binding.scrollDateHeader
|
||||
|
||||
header.postDelayed({
|
||||
if (pendingHide) {
|
||||
pendingHide = false
|
||||
ViewUtil.animateOut(binding.scrollDateHeader, slideOut)
|
||||
ViewUtil.animateOut(header, slideOut)
|
||||
}
|
||||
}, SCROLL_HEADER_CLOSE_DELAY)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user