From 609ea268ee5ab8e3ce8588656cb9fd5434b380c0 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 6c0c73d3..0cb23387 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 }