From a653c92e63c5c605ca97fd5fe4b4e82436eb0568 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Mon, 17 Aug 2020 21:20:46 +0200 Subject: [PATCH] Fix crash in ViewVideoFragment (#1894) --- .../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 9fd239ecc..654dd40c7 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewVideoFragment.kt @@ -174,7 +174,7 @@ class ViewVideoFragment : ViewMediaFragment() { } override fun onToolbarVisibilityChange(visible: Boolean) { - if (videoView == null || !userVisibleHint) { + if (videoView == null || mediaDescription == null || !userVisibleHint) { return }