mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Ensure view binding is valid after Media Preview animations.
This commit is contained in:
@@ -338,7 +338,7 @@ class MediaPreviewV2Fragment : Fragment(R.layout.fragment_media_preview_v2), Med
|
|||||||
view.visibility = VISIBLE
|
view.visibility = VISIBLE
|
||||||
}
|
}
|
||||||
.withEndAction {
|
.withEndAction {
|
||||||
if (view == binding.mediaPreviewPlaybackControls.recyclerView) {
|
if (getView() != null && view == binding.mediaPreviewPlaybackControls.recyclerView) {
|
||||||
scrollAlbumRailToCurrentAdapterPosition()
|
scrollAlbumRailToCurrentAdapterPosition()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user