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
1 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import android.graphics.PorterDuff
import android.os.Bundle import android.os.Bundle
import android.view.Menu import android.view.Menu
import android.view.MenuItem import android.view.MenuItem
import com.simplemobiletools.commons.dialogs.FilePickerDialog
import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.R
import com.simplemobiletools.gallery.extensions.config import com.simplemobiletools.gallery.extensions.config
import kotlinx.android.synthetic.main.activity_excluded_folders.* import kotlinx.android.synthetic.main.activity_excluded_folders.*
@ -52,6 +53,9 @@ class ExcludedFoldersActivity : SimpleActivity() {
} }
private fun addExcludedFolder() { private fun addExcludedFolder() {
FilePickerDialog(this, pickFile = false, showHidden = config.showHiddenFolders) {
config.addExcludedFolder(it)
updateExcludedFolders()
}
} }
} }