From 7ccffc30d22517ec2b1843d33e6a3a589f655b96 Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Sun, 18 Apr 2021 16:47:25 +0800 Subject: [PATCH] improve default thumbnail resolution on Android --- .../main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt b/android/src/main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt index 974c9b2..58073b8 100644 --- a/android/src/main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt +++ b/android/src/main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt @@ -492,7 +492,7 @@ class PhotoGalleryPlugin : FlutterPlugin, MethodCallHandler { try { this.contentResolver.loadThumbnail( ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, mediumId.toLong()), - Size(width ?: 72, height ?: 72), + Size(width ?: 512, height ?: 384), null ) } catch (e: Exception) { @@ -524,7 +524,7 @@ class PhotoGalleryPlugin : FlutterPlugin, MethodCallHandler { try { this.contentResolver.loadThumbnail( ContentUris.withAppendedId(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, mediumId.toLong()), - Size(width ?: 72, height ?: 72), + Size(width ?: 512, height ?: 384), null ) } catch (e: Exception) {