fix crash in ViewImageFragment (#1964)

This commit is contained in:
Konrad Pozniak 2020-10-25 18:36:31 +01:00 committed by GitHub
parent 6d27d822ca
commit 21b28f1bbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,9 @@ class ViewImageFragment : ViewMediaFragment() {
}
private fun onGestureEnd() {
if (photoView == null) {
return
}
if (abs(photoView.translationY) > 180) {
photoActionsListener.onDismiss()
} else {