mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-12 08:36:09 +01:00
srsly
This commit is contained in:
parent
525e44d2b1
commit
efc7d99eb1
@ -134,10 +134,10 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun loadBitmap(degrees: Float = 0f) {
|
private fun loadBitmap(degrees: Float = 0f) {
|
||||||
val densiyy = ViewPagerActivity.screenDensity
|
val density = ViewPagerActivity.screenDensity
|
||||||
Picasso.with(activity)
|
Picasso.with(activity)
|
||||||
.load("file:${medium.path}")
|
.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)
|
.priority(if (isFragmentVisible) Picasso.Priority.HIGH else Picasso.Priority.LOW)
|
||||||
.rotate(degrees)
|
.rotate(degrees)
|
||||||
.centerInside()
|
.centerInside()
|
||||||
|
Loading…
Reference in New Issue
Block a user