From cfd99ed21644b5b85b36a3fff398425b2b090115 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Thu, 3 Sep 2020 20:17:11 +0200 Subject: [PATCH] fix another crash in ViewVideoFragment (#1926) --- .../java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt index 0cb23387..6f3c8ab2 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt @@ -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) } })