fix another crash in ViewVideoFragment (#1926)

This commit is contained in:
Konrad Pozniak 2020-09-03 20:17:11 +02:00 committed by Alibek Omarov
parent 2f137d8c92
commit cfd99ed216

View File

@ -189,7 +189,7 @@ class ViewVideoFragment : ViewMediaFragment() {
mediaDescription.animate().alpha(alpha)
.setListener(object : AnimatorListenerAdapter() {
override fun onAnimationEnd(animation: Animator) {
mediaDescription.visible(isDescriptionVisible)
mediaDescription?.visible(isDescriptionVisible)
animation.removeListener(this)
}
})