rotate the fullscreen image appropriately
This commit is contained in:
parent
6a637797e1
commit
70afd83bd7
|
@ -137,6 +137,7 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
Picasso.with(activity)
|
Picasso.with(activity)
|
||||||
.load("file:${medium.path}")
|
.load("file:${medium.path}")
|
||||||
.resize(metrics.widthPixels * 2, metrics.heightPixels * 2)
|
.resize(metrics.widthPixels * 2, metrics.heightPixels * 2)
|
||||||
|
.rotate(degrees)
|
||||||
.centerInside()
|
.centerInside()
|
||||||
.into(view.photo_view)
|
.into(view.photo_view)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue