fix crash in ViewImageFragment (#1964)
This commit is contained in:
parent
6d27d822ca
commit
21b28f1bbb
|
@ -158,6 +158,9 @@ class ViewImageFragment : ViewMediaFragment() {
|
|||
}
|
||||
|
||||
private fun onGestureEnd() {
|
||||
if (photoView == null) {
|
||||
return
|
||||
}
|
||||
if (abs(photoView.translationY) > 180) {
|
||||
photoActionsListener.onDismiss()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue