mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
refresh file thumbnails if the rounded corners setting changes
This commit is contained in:
parent
92802b2923
commit
78a75fe873
1 changed files with 8 additions and 0 deletions
|
@ -74,6 +74,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
private var mStoredCropThumbnails = true
|
private var mStoredCropThumbnails = true
|
||||||
private var mStoredScrollHorizontally = true
|
private var mStoredScrollHorizontally = true
|
||||||
private var mStoredShowFileTypes = true
|
private var mStoredShowFileTypes = true
|
||||||
|
private var mStoredRoundedCorners = false
|
||||||
private var mStoredTextColor = 0
|
private var mStoredTextColor = 0
|
||||||
private var mStoredPrimaryColor = 0
|
private var mStoredPrimaryColor = 0
|
||||||
private var mStoredThumbnailSpacing = 0
|
private var mStoredThumbnailSpacing = 0
|
||||||
|
@ -158,6 +159,12 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
handleGridSpacing()
|
handleGridSpacing()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mStoredRoundedCorners != config.fileRoundedCorners) {
|
||||||
|
handleGridSpacing()
|
||||||
|
media_grid.adapter = null
|
||||||
|
getMedia()
|
||||||
|
}
|
||||||
|
|
||||||
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
|
||||||
|
@ -304,6 +311,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
mStoredTextColor = textColor
|
mStoredTextColor = textColor
|
||||||
mStoredPrimaryColor = primaryColor
|
mStoredPrimaryColor = primaryColor
|
||||||
mStoredThumbnailSpacing = thumbnailSpacing
|
mStoredThumbnailSpacing = thumbnailSpacing
|
||||||
|
mStoredRoundedCorners = fileRoundedCorners
|
||||||
mShowAll = showAll
|
mShowAll = showAll
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue