diff --git a/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt b/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt index 13b66b0..c4592cc 100644 --- a/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt +++ b/app/src/main/java/org/lineageos/glimpse/fragments/MediaViewerFragment.kt @@ -294,6 +294,7 @@ class MediaViewerFragment : Fragment( } viewPager.adapter = mediaViewerAdapter + viewPager.offscreenPageLimit = 2 viewPager.registerOnPageChangeCallback(onPageChangeCallback) shareButton.setOnClickListener {