From a15a972fed66a6a387b92c3c18826a88541fcdab Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 23 Oct 2018 16:46:11 +0200 Subject: [PATCH] allow toggling hidden item visibility at file picker dialogs --- .../filemanager/activities/FavoritesActivity.kt | 2 +- .../com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt | 2 +- .../simplemobiletools/filemanager/dialogs/CompressAsDialog.kt | 2 +- .../com/simplemobiletools/filemanager/dialogs/SaveAsDialog.kt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/FavoritesActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/FavoritesActivity.kt index e2064fc3..3daf9a9c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/FavoritesActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/FavoritesActivity.kt @@ -58,7 +58,7 @@ class FavoritesActivity : SimpleActivity(), RefreshRecyclerViewListener { } private fun addFavorite() { - FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden) { + FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden, canAddShowHiddenButton = true) { config.addFavorite(it) updateFavorites() } diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt index 85aa7e5e..14bbdc50 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt @@ -252,7 +252,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList