Ensure view binding is valid after Media Preview animations.

This commit is contained in:
Nicholas 2022-12-08 09:08:12 -05:00 committed by Alex Hart
parent f8520d83be
commit aba51da932

View file

@ -338,7 +338,7 @@ class MediaPreviewV2Fragment : Fragment(R.layout.fragment_media_preview_v2), Med
view.visibility = VISIBLE
}
.withEndAction {
if (view == binding.mediaPreviewPlaybackControls.recyclerView) {
if (getView() != null && view == binding.mediaPreviewPlaybackControls.recyclerView) {
scrollAlbumRailToCurrentAdapterPosition()
}
}