Skip to content

Commit e0b549e

Browse files
committed
Fix: play videos also when scrolling in from another picture
1 parent e3fb2cf commit e0b549e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/kotlin/org/fossify/gallery/fragments/PhotoFragment.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ class PhotoFragment : ViewPagerFragment() {
391391
if (!menuVisible && mIsMotionVideoPlaying) {
392392
stopMotionPhotoVideo()
393393
}
394+
if (menuVisible && mWasInit && mIsMotionPhoto && !mIsMotionVideoPlaying && context?.config?.autoplayMotionPhotos == true) {
395+
playMotionPhotoVideo()
396+
}
394397
if (mWasInit) {
395398
val isNotAnimatedContent =
396399
!mMedium.isGIF() && !mMedium.isApng() && !mMedium.isAvif() && !mMedium.isWebP()

0 commit comments

Comments
 (0)