make sure the photos are rotated properly
This commit is contained in:
parent
7d86d15f00
commit
2e93991b6e
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ public class ViewPagerFragment extends Fragment implements View.OnClickListener
|
||||||
|
|
||||||
if (path != null) {
|
if (path != null) {
|
||||||
final SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) view.findViewById(R.id.photo);
|
final SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) view.findViewById(R.id.photo);
|
||||||
|
imageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_USE_EXIF);
|
||||||
imageView.setImage(ImageSource.uri(path));
|
imageView.setImage(ImageSource.uri(path));
|
||||||
imageView.setMaxScale(5f);
|
imageView.setMaxScale(5f);
|
||||||
imageView.setOnClickListener(this);
|
imageView.setOnClickListener(this);
|
||||||
|
|
Loading…
Reference in a new issue