From 139e9fc06fd2476a23b0a974bd477c4c84e1afb4 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 22 Jun 2018 10:01:48 +0200 Subject: [PATCH] renaming a function for getting folder grouping --- .../com/simplemobiletools/gallery/adapters/MediaAdapter.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt index 49a0e47d6..c09b7604e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -292,7 +292,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList, } fun updateMedia(newMedia: ArrayList) { - 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, } 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, } } - private fun getCurrentFolderGrouping() = activity.config.getFolderGrouping(path) + private fun getFolderGrouping() = activity.config.getFolderGrouping(path) private fun setupView(view: View, medium: Medium) { view.apply {