From f27afeb67404c25397afd6c7205b34cf499d1afe Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 23 Feb 2017 20:11:33 +0100 Subject: [PATCH] add nomedia adding/removing at directory view --- .../gallery/adapters/DirectoryAdapter.kt | 13 +++++-- .../gallery/extensions/activity.kt | 38 ++++++++++++++++++- 2 files changed, 46 insertions(+), 5 deletions(-) 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 378334093..795544ffe 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -23,9 +23,7 @@ import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.activities.SimpleActivity import com.simplemobiletools.gallery.dialogs.CopyDialog import com.simplemobiletools.gallery.dialogs.RenameDirectoryDialog -import com.simplemobiletools.gallery.extensions.config -import com.simplemobiletools.gallery.extensions.containsNoMedia -import com.simplemobiletools.gallery.extensions.createSelector +import com.simplemobiletools.gallery.extensions.* import com.simplemobiletools.gallery.models.Directory import kotlinx.android.synthetic.main.directory_item.view.* import kotlinx.android.synthetic.main.directory_tmb.view.* @@ -172,6 +170,15 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList