Skip to content

Commit 1be6264

Browse files
committed
increase the resolution of local images for a bit better quality
1 parent 0b9b1b7 commit 1be6264

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/contacts/helpers

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/helpers/DBHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
106106
val bitmap = MediaStore.Images.Media.getBitmap(context.contentResolver, photoUri)
107107

108108
val thumbnailSize = context.getPhotoThumbnailSize()
109-
val scaledPhoto = Bitmap.createScaledBitmap(bitmap, thumbnailSize, thumbnailSize, false)
109+
val scaledPhoto = Bitmap.createScaledBitmap(bitmap, thumbnailSize * 2, thumbnailSize * 2, false)
110110
val scaledSizePhotoData = scaledPhoto.getByteArray()
111111
scaledPhoto.recycle()
112112
return scaledSizePhotoData

0 commit comments

Comments
 (0)