From 0c135b44ac986a2249b2f2d80a7097fcbeab9d89 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 22 Mar 2017 21:32:08 +0100 Subject: [PATCH] add a menu button for temporarily showing hidden folders --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 5 +++++ app/src/main/res/menu/menu_main.xml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 1ef92b6ca..ebd18c77c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -86,6 +86,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { R.id.sort -> showSortingDialog() R.id.open_camera -> launchCamera() R.id.show_all -> showAllMedia() + R.id.temporarily_show_hidden -> temporarilyShowHidden() R.id.increase_column_count -> increaseColumnCount() R.id.reduce_column_count -> reduceColumnCount() R.id.settings -> launchSettings() @@ -177,6 +178,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { finish() } + private fun temporarilyShowHidden() { + + } + private fun checkIfColorChanged() { if (DirectoryAdapter.foregroundColor != config.primaryColor) { DirectoryAdapter.foregroundColor = config.primaryColor diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index 923659e73..01937ceb9 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -15,6 +15,10 @@ android:id="@+id/show_all" android:title="@string/show_all" app:showAsAction="never"/> +