Swipe down to close images #122

Merged
AmineB merged 10 commits from davidoskky/ReaderForSelfoss-multiplatform:swipe_down into master 2023-01-26 10:42:16 +00:00
Showing only changes of commit ddc72d85b0 - Show all commits

View File

@ -46,7 +46,9 @@ class ImageFragment : Fragment() {
}
override fun onTransitionCompleted(motionLayout: MotionLayout?, currentId: Int) {
activity?.finish()
if (motionLayout?.currentState == binding?.root?.endState) {
activity?.finish()
}
}
override fun onTransitionTrigger(motionLayout: MotionLayout?, triggerId: Int, positive: Boolean, progress: Float) {