show the Show Hidden Items button at the file picker dialogs

This commit is contained in:
tibbi 2018-10-25 23:07:10 +02:00
parent 1d53171568
commit 0d6de330f9
3 changed files with 4 additions and 4 deletions

View File

@ -321,7 +321,7 @@ class MainActivity : SimpleActivity() {
} }
private fun openFile() { private fun openFile() {
FilePickerDialog(this) { FilePickerDialog(this, canAddShowHiddenButton = true) {
openFile(it, true) { openFile(it, true) {
OpenFileDialog(this, it.path) { OpenFileDialog(this, it.path) {
addNewNote(it) addNewNote(it)
@ -384,7 +384,7 @@ class MainActivity : SimpleActivity() {
} }
private fun openFolder() { private fun openFolder() {
FilePickerDialog(this, pickFile = false) { FilePickerDialog(this, pickFile = false, canAddShowHiddenButton = true) {
openFolder(it) { openFolder(it) {
ImportFolderDialog(this, it.path) { ImportFolderDialog(this, it.path) {
mNotes = dbHelper.getNotes() mNotes = dbHelper.getNotes()

View File

@ -20,7 +20,7 @@ class ExportFileDialog(val activity: SimpleActivity, val note: Note, val callbac
file_name.setText(note.title) file_name.setText(note.title)
file_extension.setText(activity.config.lastUsedExtension) file_extension.setText(activity.config.lastUsedExtension)
file_path.setOnClickListener { file_path.setOnClickListener {
FilePickerDialog(activity, realPath, false, false, true) { FilePickerDialog(activity, realPath, false, false, true, true) {
file_path.text = activity.humanizePath(it) file_path.text = activity.humanizePath(it)
realPath = it realPath = it
} }

View File

@ -20,7 +20,7 @@ class ExportFilesDialog(val activity: SimpleActivity, val notes: ArrayList<Note>
file_extension.setText(activity.config.lastUsedExtension) file_extension.setText(activity.config.lastUsedExtension)
folder_path.setOnClickListener { folder_path.setOnClickListener {
FilePickerDialog(activity, realPath, false, false, true) { FilePickerDialog(activity, realPath, false, false, true, true) {
folder_path.text = activity.humanizePath(it) folder_path.text = activity.humanizePath(it)
realPath = it realPath = it
} }