add a menu button for temporarily showing hidden folders

This commit is contained in:
tibbi 2017-03-22 21:32:08 +01:00
parent 315d2197b8
commit 0c135b44ac
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -15,6 +15,10 @@
android:id="@+id/show_all"
android:title="@string/show_all"
app:showAsAction="never"/>
<item
android:id="@+id/temporarily_show_hidden"
android:title="@string/temporarily_show_hidden"
app:showAsAction="never"/>
<item
android:id="@+id/increase_column_count"
android:title="@string/increase_column_count"