make sure the photos are rotated properly

This commit is contained in:
tibbi 2016-02-24 23:45:41 +01:00
parent 7d86d15f00
commit 2e93991b6e
1 changed files with 1 additions and 0 deletions

View File

@ -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);