properly handle margins between thumbnails, if selected so

This commit is contained in:
tibbi 2021-11-29 21:51:17 +01:00
parent 0636fc9461
commit a67e5ff86f
2 changed files with 3 additions and 3 deletions

View file

@ -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'

View file

@ -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)
}*/
}
}
}