1
0
mirror of https://github.com/tuskyapp/Tusky synced 2024-12-25 08:20:56 +01:00

Fix crash in ViewVideoFragment (#1894)

This commit is contained in:
Konrad Pozniak 2020-08-17 21:20:46 +02:00 committed by GitHub
parent 1f6658f57e
commit a653c92e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}