diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index 651520dc2..5d6d1dfbf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -240,9 +240,10 @@ class PhotoFragment : ViewPagerFragment() { Picasso.get() .load(File(medium.path)) .centerInside() - .fit() + .resize(ViewPagerActivity.screenWidth / 2, ViewPagerActivity.screenHeight / 2) .into(view.photo_view, object : Callback { override fun onSuccess() { + view.photo_view.isZoomable = false if (isFragmentVisible) { scheduleZoomableView() } diff --git a/app/src/main/res/layout/pager_photo_item.xml b/app/src/main/res/layout/pager_photo_item.xml index 8d35ed318..96cb2b6c3 100644 --- a/app/src/main/res/layout/pager_photo_item.xml +++ b/app/src/main/res/layout/pager_photo_item.xml @@ -9,8 +9,7 @@ + android:layout_height="match_parent"/>