From cc7845d89ef5f20acd77feec3a31418c2552ef75 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 17 Jan 2021 23:59:16 +0100 Subject: [PATCH] update thumbnail spacing on resume --- .../gallery/pro/activities/MediaActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) 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 } }