update thumbnail spacing on resume

This commit is contained in:
tibbi 2021-01-17 23:59:16 +01:00
parent 54fffd215f
commit cc7845d89e
1 changed files with 6 additions and 0 deletions

View File

@ -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<ThumbnailItem>()
@ -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
}
}