update thumbnail spacing on resume
This commit is contained in:
parent
54fffd215f
commit
cc7845d89e
|
@ -76,6 +76,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
private var mStoredShowFileTypes = true
|
private var mStoredShowFileTypes = true
|
||||||
private var mStoredTextColor = 0
|
private var mStoredTextColor = 0
|
||||||
private var mStoredPrimaryColor = 0
|
private var mStoredPrimaryColor = 0
|
||||||
|
private var mStoredThumbnailSpacing = 0
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
var mMedia = ArrayList<ThumbnailItem>()
|
var mMedia = ArrayList<ThumbnailItem>()
|
||||||
|
@ -153,6 +154,10 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
media_vertical_fastscroller.updatePrimaryColor()
|
media_vertical_fastscroller.updatePrimaryColor()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mStoredThumbnailSpacing != config.thumbnailSpacing) {
|
||||||
|
handleGridSpacing()
|
||||||
|
}
|
||||||
|
|
||||||
media_horizontal_fastscroller.updateBubbleColors()
|
media_horizontal_fastscroller.updateBubbleColors()
|
||||||
media_vertical_fastscroller.updateBubbleColors()
|
media_vertical_fastscroller.updateBubbleColors()
|
||||||
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
||||||
|
@ -298,6 +303,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
mStoredShowFileTypes = showThumbnailFileTypes
|
mStoredShowFileTypes = showThumbnailFileTypes
|
||||||
mStoredTextColor = textColor
|
mStoredTextColor = textColor
|
||||||
mStoredPrimaryColor = primaryColor
|
mStoredPrimaryColor = primaryColor
|
||||||
|
mStoredThumbnailSpacing = thumbnailSpacing
|
||||||
mShowAll = showAll
|
mShowAll = showAll
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue