From 46a8f67c02cf867ed6c9753d468cb3e905ddc614 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 21 Feb 2016 21:19:36 +0100 Subject: [PATCH] set the max allowed zoom to 5x --- .../java/gallery/simplemobiletools/com/ViewPagerFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/gallery/simplemobiletools/com/ViewPagerFragment.java b/app/src/main/java/gallery/simplemobiletools/com/ViewPagerFragment.java index 3330e0be6..0d04e3c57 100644 --- a/app/src/main/java/gallery/simplemobiletools/com/ViewPagerFragment.java +++ b/app/src/main/java/gallery/simplemobiletools/com/ViewPagerFragment.java @@ -23,6 +23,7 @@ public class ViewPagerFragment extends Fragment { if (path != null) { final SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) view.findViewById(R.id.photo); imageView.setImage(ImageSource.uri(path)); + imageView.setMaxScale(5f); } return view;