mirror of
https://github.com/tuskyapp/Tusky
synced 2025-01-27 23:49:23 +01:00
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…
x
Reference in New Issue
Block a user