diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt index e576014e9..04a91b40a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -13,6 +13,7 @@ import com.bumptech.glide.signature.StringSignature import com.simplemobiletools.filepicker.extensions.isAStorageRootFolder import com.simplemobiletools.filepicker.extensions.scanPaths import com.simplemobiletools.filepicker.extensions.toast +import com.simplemobiletools.gallery.Config import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.activities.SimpleActivity import com.simplemobiletools.gallery.dialogs.RenameDirectoryDialog @@ -27,6 +28,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList() + val config = Config.newInstance(activity) companion object { var actMode: ActionMode? = null @@ -57,9 +59,23 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList 0 + menu.findItem(R.id.cab_unhide).isVisible = hiddenCnt > 0 return true } @@ -123,6 +139,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList