Skip to content

Commit 0d6de33

Browse files
committed
show the Show Hidden Items button at the file picker dialogs
1 parent 1d53171 commit 0d6de33

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class MainActivity : SimpleActivity() {
321321
}
322322

323323
private fun openFile() {
324-
FilePickerDialog(this) {
324+
FilePickerDialog(this, canAddShowHiddenButton = true) {
325325
openFile(it, true) {
326326
OpenFileDialog(this, it.path) {
327327
addNewNote(it)
@@ -384,7 +384,7 @@ class MainActivity : SimpleActivity() {
384384
}
385385

386386
private fun openFolder() {
387-
FilePickerDialog(this, pickFile = false) {
387+
FilePickerDialog(this, pickFile = false, canAddShowHiddenButton = true) {
388388
openFolder(it) {
389389
ImportFolderDialog(this, it.path) {
390390
mNotes = dbHelper.getNotes()

app/src/main/kotlin/com/simplemobiletools/notes/dialogs/ExportFileDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ExportFileDialog(val activity: SimpleActivity, val note: Note, val callbac
2020
file_name.setText(note.title)
2121
file_extension.setText(activity.config.lastUsedExtension)
2222
file_path.setOnClickListener {
23-
FilePickerDialog(activity, realPath, false, false, true) {
23+
FilePickerDialog(activity, realPath, false, false, true, true) {
2424
file_path.text = activity.humanizePath(it)
2525
realPath = it
2626
}

app/src/main/kotlin/com/simplemobiletools/notes/dialogs/ExportFilesDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ExportFilesDialog(val activity: SimpleActivity, val notes: ArrayList<Note>
2020

2121
file_extension.setText(activity.config.lastUsedExtension)
2222
folder_path.setOnClickListener {
23-
FilePickerDialog(activity, realPath, false, false, true) {
23+
FilePickerDialog(activity, realPath, false, false, true, true) {
2424
folder_path.text = activity.humanizePath(it)
2525
realPath = it
2626
}

0 commit comments

Comments
 (0)