mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 06:17:59 +01:00
rotate the fullscreen image appropriately
This commit is contained in:
parent
6a637797e1
commit
70afd83bd7
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue