From 2e93991b6e4d44d5c5553699210ab16b1c01b28b Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 24 Feb 2016 23:45:41 +0100 Subject: [PATCH] make sure the photos are rotated properly --- .../java/com/simplemobiletools/gallery/ViewPagerFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/simplemobiletools/gallery/ViewPagerFragment.java b/app/src/main/java/com/simplemobiletools/gallery/ViewPagerFragment.java index c652897e8..1e4e49d86 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/ViewPagerFragment.java +++ b/app/src/main/java/com/simplemobiletools/gallery/ViewPagerFragment.java @@ -24,6 +24,7 @@ public class ViewPagerFragment extends Fragment implements View.OnClickListener if (path != null) { final SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) view.findViewById(R.id.photo); + imageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_USE_EXIF); imageView.setImage(ImageSource.uri(path)); imageView.setMaxScale(5f); imageView.setOnClickListener(this);