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 5bbdbbd2d..5b6922a14 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -134,10 +134,10 @@ class PhotoFragment : ViewPagerFragment() { } private fun loadBitmap(degrees: Float = 0f) { - val densiyy = ViewPagerActivity.screenDensity + val density = ViewPagerActivity.screenDensity Picasso.with(activity) .load("file:${medium.path}") - .resize((ViewPagerActivity.screenWidth * densiyy).toInt(), (ViewPagerActivity.screenHeight * densiyy).toInt()) + .resize((ViewPagerActivity.screenWidth * density).toInt(), (ViewPagerActivity.screenHeight * density).toInt()) .priority(if (isFragmentVisible) Picasso.Priority.HIGH else Picasso.Priority.LOW) .rotate(degrees) .centerInside()