mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-13 07:00:10 +01:00
show the Show Hidden Items button at the file picker dialogs
This commit is contained in:
parent
1d53171568
commit
0d6de330f9
@ -321,7 +321,7 @@ class MainActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
private fun openFile() {
|
||||
FilePickerDialog(this) {
|
||||
FilePickerDialog(this, canAddShowHiddenButton = true) {
|
||||
openFile(it, true) {
|
||||
OpenFileDialog(this, it.path) {
|
||||
addNewNote(it)
|
||||
@ -384,7 +384,7 @@ class MainActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
private fun openFolder() {
|
||||
FilePickerDialog(this, pickFile = false) {
|
||||
FilePickerDialog(this, pickFile = false, canAddShowHiddenButton = true) {
|
||||
openFolder(it) {
|
||||
ImportFolderDialog(this, it.path) {
|
||||
mNotes = dbHelper.getNotes()
|
||||
|
@ -20,7 +20,7 @@ class ExportFileDialog(val activity: SimpleActivity, val note: Note, val callbac
|
||||
file_name.setText(note.title)
|
||||
file_extension.setText(activity.config.lastUsedExtension)
|
||||
file_path.setOnClickListener {
|
||||
FilePickerDialog(activity, realPath, false, false, true) {
|
||||
FilePickerDialog(activity, realPath, false, false, true, true) {
|
||||
file_path.text = activity.humanizePath(it)
|
||||
realPath = it
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ class ExportFilesDialog(val activity: SimpleActivity, val notes: ArrayList<Note>
|
||||
|
||||
file_extension.setText(activity.config.lastUsedExtension)
|
||||
folder_path.setOnClickListener {
|
||||
FilePickerDialog(activity, realPath, false, false, true) {
|
||||
FilePickerDialog(activity, realPath, false, false, true, true) {
|
||||
folder_path.text = activity.humanizePath(it)
|
||||
realPath = it
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user