From 8868b73d282280c1c9128908b37c80593cfe73ff Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 7 Aug 2018 12:38:37 +0200 Subject: [PATCH] do not use half resolution at loading initial bitmap --- .../simplemobiletools/gallery/fragments/PhotoFragment.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index b4f291323..e26acd52a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -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())