mirror of
				https://github.com/SimpleMobileTools/Simple-Gallery.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	do not use half resolution at loading initial bitmap
This commit is contained in:
		| @@ -234,17 +234,10 @@ class PhotoFragment : ViewPagerFragment() { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun loadBitmap(degrees: Int = 0) { |     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() |         val picasso = Picasso.get() | ||||||
|                 .load(File(medium.path)) |                 .load(File(medium.path)) | ||||||
|                 .centerInside() |                 .centerInside() | ||||||
|                 .resize(targetWidth, targetHeight) |                 .resize(ViewPagerActivity.screenWidth, ViewPagerActivity.screenHeight) | ||||||
|  |  | ||||||
|         if (degrees != 0) { |         if (degrees != 0) { | ||||||
|             picasso.rotate(degrees.toFloat()) |             picasso.rotate(degrees.toFloat()) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user