Fix crash in ViewVideoFragment (#1894)

This commit is contained in:
Konrad Pozniak 2020-08-17 21:20:46 +02:00 committed by Alibek Omarov
parent 1da7316160
commit c93ebccc86
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class ViewVideoFragment : ViewMediaFragment() {
}
override fun onToolbarVisibilityChange(visible: Boolean) {
if (videoView == null || !userVisibleHint) {
if (videoView == null || mediaDescription == null || !userVisibleHint) {
return
}