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() {
|
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()
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user