fix crash in ViewImageFragment (#1964)
This commit is contained in:
parent
6d27d822ca
commit
21b28f1bbb
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue