From 1be6264cf41b1efd86cf4688e760f6a6dc929f2e Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 11 Feb 2018 23:26:18 +0100 Subject: [PATCH] increase the resolution of local images for a bit better quality --- .../kotlin/com/simplemobiletools/contacts/helpers/DBHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/DBHelper.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/DBHelper.kt index 126316b0..52255721 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/DBHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/DBHelper.kt @@ -106,7 +106,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont val bitmap = MediaStore.Images.Media.getBitmap(context.contentResolver, photoUri) val thumbnailSize = context.getPhotoThumbnailSize() - val scaledPhoto = Bitmap.createScaledBitmap(bitmap, thumbnailSize, thumbnailSize, false) + val scaledPhoto = Bitmap.createScaledBitmap(bitmap, thumbnailSize * 2, thumbnailSize * 2, false) val scaledSizePhotoData = scaledPhoto.getByteArray() scaledPhoto.recycle() return scaledSizePhotoData