implement the Excluded folder adding from the manager activity

This commit is contained in:
tibbi 2017-03-17 22:46:30 +01:00
parent 05fb1efe57
commit 87b34b4386

View file

@ -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()
}
}
}