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 22e6b5434..9c86330da 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 @@ -76,6 +76,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { private var mStoredShowFileTypes = true private var mStoredTextColor = 0 private var mStoredPrimaryColor = 0 + private var mStoredThumbnailSpacing = 0 companion object { var mMedia = ArrayList() @@ -153,6 +154,10 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { media_vertical_fastscroller.updatePrimaryColor() } + if (mStoredThumbnailSpacing != config.thumbnailSpacing) { + handleGridSpacing() + } + media_horizontal_fastscroller.updateBubbleColors() media_vertical_fastscroller.updateBubbleColors() media_refresh_layout.isEnabled = config.enablePullToRefresh @@ -298,6 +303,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { mStoredShowFileTypes = showThumbnailFileTypes mStoredTextColor = textColor mStoredPrimaryColor = primaryColor + mStoredThumbnailSpacing = thumbnailSpacing mShowAll = showAll } }