From a67e5ff86fe385eb080b5ff73d22cfc5fce396c1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 29 Nov 2021 21:51:17 +0100 Subject: [PATCH] properly handle margins between thumbnails, if selected so --- app/build.gradle | 2 +- .../simplemobiletools/gallery/pro/activities/MediaActivity.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 86fc6becd..2932b7dd6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -78,7 +78,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:eae0b416b8' + implementation 'com.github.SimpleMobileTools:Simple-Commons:29a10478d1' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.22' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt index f646cc0df..5d29ce485 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt @@ -759,7 +759,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { val spacing = config.thumbnailSpacing val useGridPosition = media.firstOrNull() is ThumbnailSection - /*var currentGridDecoration: GridSpacingItemDecoration? = null + var currentGridDecoration: GridSpacingItemDecoration? = null if (media_grid.itemDecorationCount > 0) { currentGridDecoration = media_grid.getItemDecorationAt(0) as GridSpacingItemDecoration currentGridDecoration.items = media @@ -771,7 +771,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { media_grid.removeItemDecoration(currentGridDecoration) } media_grid.addItemDecoration(newGridDecoration) - }*/ + } } }