mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
do not use half resolution at loading initial bitmap
This commit is contained in:
parent
1fa54e6c1a
commit
8868b73d28
1 changed files with 1 additions and 8 deletions
|
@ -234,17 +234,10 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
}
|
||||
|
||||
private fun loadBitmap(degrees: Int = 0) {
|
||||
var targetWidth = ViewPagerActivity.screenWidth
|
||||
var targetHeight = ViewPagerActivity.screenHeight
|
||||
if (degrees == 0) {
|
||||
targetWidth /= 2
|
||||
targetHeight /= 2
|
||||
}
|
||||
|
||||
val picasso = Picasso.get()
|
||||
.load(File(medium.path))
|
||||
.centerInside()
|
||||
.resize(targetWidth, targetHeight)
|
||||
.resize(ViewPagerActivity.screenWidth, ViewPagerActivity.screenHeight)
|
||||
|
||||
if (degrees != 0) {
|
||||
picasso.rotate(degrees.toFloat())
|
||||
|
|
Loading…
Reference in a new issue