Fix crash in ViewVideoFragment (#1894)

main
Konrad Pozniak 4 years ago committed by Alibek Omarov
parent 1da7316160
commit c93ebccc86
  1. 2
      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
}

Loading…
Cancel
Save