From 87b34b43862fd122846f4552596bc294dfd4adfd Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 17 Mar 2017 22:46:30 +0100 Subject: [PATCH] implement the Excluded folder adding from the manager activity --- .../gallery/activities/ExcludedFoldersActivity.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ExcludedFoldersActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ExcludedFoldersActivity.kt index 1be7b4a6d..2043f6435 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ExcludedFoldersActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ExcludedFoldersActivity.kt @@ -4,6 +4,7 @@ import android.graphics.PorterDuff import android.os.Bundle import android.view.Menu import android.view.MenuItem +import com.simplemobiletools.commons.dialogs.FilePickerDialog import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.extensions.config import kotlinx.android.synthetic.main.activity_excluded_folders.* @@ -52,6 +53,9 @@ class ExcludedFoldersActivity : SimpleActivity() { } private fun addExcludedFolder() { - + FilePickerDialog(this, pickFile = false, showHidden = config.showHiddenFolders) { + config.addExcludedFolder(it) + updateExcludedFolders() + } } }