allow toggling hidden item visibility at file picker dialogs
This commit is contained in:
parent
d22d469eb3
commit
a15a972fed
|
@ -58,7 +58,7 @@ class FavoritesActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addFavorite() {
|
private fun addFavorite() {
|
||||||
FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden) {
|
FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden, canAddShowHiddenButton = true) {
|
||||||
config.addFavorite(it)
|
config.addFavorite(it)
|
||||||
updateFavorites()
|
updateFavorites()
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,7 +252,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
||||||
val files = getSelectedFileDirItems()
|
val files = getSelectedFileDirItems()
|
||||||
val firstFile = files[0]
|
val firstFile = files[0]
|
||||||
val source = if (firstFile.isDirectory) firstFile.path else firstFile.getParentPath()
|
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)) {
|
if (activity.isPathOnRoot(it) || activity.isPathOnRoot(firstFile.path)) {
|
||||||
copyMoveRootItems(files, it, isCopyOperation)
|
copyMoveRootItems(files, it, isCopyOperation)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -23,7 +23,7 @@ class CompressAsDialog(val activity: BaseSimpleActivity, val path: String, val c
|
||||||
|
|
||||||
file_path.text = activity.humanizePath(realPath)
|
file_path.text = activity.humanizePath(realPath)
|
||||||
file_path.setOnClickListener {
|
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)
|
file_path.text = activity.humanizePath(it)
|
||||||
realPath = it
|
realPath = it
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ class SaveAsDialog(val activity: BaseSimpleActivity, var path: String, val callb
|
||||||
|
|
||||||
save_as_name.setText(name)
|
save_as_name.setText(name)
|
||||||
save_as_path.setOnClickListener {
|
save_as_path.setOnClickListener {
|
||||||
FilePickerDialog(activity, realPath, false, false, true) {
|
FilePickerDialog(activity, realPath, false, false, true, true) {
|
||||||
save_as_path.text = activity.humanizePath(it)
|
save_as_path.text = activity.humanizePath(it)
|
||||||
realPath = it
|
realPath = it
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue