implement the Excluded folder adding from the manager activity
This commit is contained in:
parent
05fb1efe57
commit
87b34b4386
|
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue