fix crash in ViewImageFragment
This commit is contained in:
parent
f2a2c16464
commit
1b66bb826e
|
@ -113,7 +113,9 @@ class ViewImageFragment : ViewMediaFragment() {
|
|||
object : GestureDetector.SimpleOnGestureListener() {
|
||||
override fun onDown(e: MotionEvent) = true
|
||||
override fun onSingleTapConfirmed(e: MotionEvent): Boolean {
|
||||
photoActionsListener.onPhotoTap()
|
||||
if (isAdded) {
|
||||
photoActionsListener.onPhotoTap()
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue