mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
renaming a function for getting folder grouping
This commit is contained in:
parent
f47190b9e1
commit
139e9fc06f
1 changed files with 3 additions and 3 deletions
|
@ -292,7 +292,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
|||
}
|
||||
|
||||
fun updateMedia(newMedia: ArrayList<Medium>) {
|
||||
if (newMedia.hashCode() != currentMediaHash || currentGrouping != getCurrentFolderGrouping()) {
|
||||
if (newMedia.hashCode() != currentMediaHash || currentGrouping != getFolderGrouping()) {
|
||||
currentMediaHash = newMedia.hashCode()
|
||||
Handler().postDelayed({
|
||||
media = newMedia
|
||||
|
@ -334,7 +334,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
|||
}
|
||||
|
||||
private fun groupMedia() {
|
||||
currentGrouping = getCurrentFolderGrouping()
|
||||
currentGrouping = getFolderGrouping()
|
||||
if (currentGrouping and GROUP_BY_NONE != 0) {
|
||||
return
|
||||
}
|
||||
|
@ -355,7 +355,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
|||
}
|
||||
}
|
||||
|
||||
private fun getCurrentFolderGrouping() = activity.config.getFolderGrouping(path)
|
||||
private fun getFolderGrouping() = activity.config.getFolderGrouping(path)
|
||||
|
||||
private fun setupView(view: View, medium: Medium) {
|
||||
view.apply {
|
||||
|
|
Loading…
Reference in a new issue