allow toggling hidden item visibility at file picker dialogs

This commit is contained in:
tibbi 2018-10-23 16:46:11 +02:00
parent d22d469eb3
commit a15a972fed
4 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ class FavoritesActivity : SimpleActivity(), RefreshRecyclerViewListener {
}
private fun addFavorite() {
FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden) {
FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden, canAddShowHiddenButton = true) {
config.addFavorite(it)
updateFavorites()
}

View File

@ -252,7 +252,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
val files = getSelectedFileDirItems()
val firstFile = files[0]
val source = if (firstFile.isDirectory) firstFile.path else firstFile.getParentPath()
FilePickerDialog(activity, source, false, activity.config.shouldShowHidden, true) {
FilePickerDialog(activity, source, false, activity.config.shouldShowHidden, true, true) {
if (activity.isPathOnRoot(it) || activity.isPathOnRoot(firstFile.path)) {
copyMoveRootItems(files, it, isCopyOperation)
} else {

View File

@ -23,7 +23,7 @@ class CompressAsDialog(val activity: BaseSimpleActivity, val path: String, val c
file_path.text = activity.humanizePath(realPath)
file_path.setOnClickListener {
FilePickerDialog(activity, realPath, false, activity.config.shouldShowHidden, true) {
FilePickerDialog(activity, realPath, false, activity.config.shouldShowHidden, true, true) {
file_path.text = activity.humanizePath(it)
realPath = it
}

View File

@ -31,7 +31,7 @@ class SaveAsDialog(val activity: BaseSimpleActivity, var path: String, val callb
save_as_name.setText(name)
save_as_path.setOnClickListener {
FilePickerDialog(activity, realPath, false, false, true) {
FilePickerDialog(activity, realPath, false, false, true, true) {
save_as_path.text = activity.humanizePath(it)
realPath = it
}