fix crash in ViewImageFragment

This commit is contained in:
Conny Duck 2024-09-16 20:55:43 +02:00
parent f2a2c16464
commit 1b66bb826e
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -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
}
}