fix a variable name

This commit is contained in:
tibbi 2017-03-18 16:03:23 +01:00
parent 76e18196b5
commit 525e44d2b1

View file

@ -134,10 +134,10 @@ class PhotoFragment : ViewPagerFragment() {
}
private fun loadBitmap(degrees: Float = 0f) {
val densiy = ViewPagerActivity.screenDensity
val densiyy = ViewPagerActivity.screenDensity
Picasso.with(activity)
.load("file:${medium.path}")
.resize((ViewPagerActivity.screenWidth * densiy).toInt(), (ViewPagerActivity.screenHeight * densiy).toInt())
.resize((ViewPagerActivity.screenWidth * densiyy).toInt(), (ViewPagerActivity.screenHeight * densiyy).toInt())
.priority(if (isFragmentVisible) Picasso.Priority.HIGH else Picasso.Priority.LOW)
.rotate(degrees)
.centerInside()