add a menu button for temporarily showing hidden folders
This commit is contained in:
parent
315d2197b8
commit
0c135b44ac
2 changed files with 9 additions and 0 deletions
|
@ -86,6 +86,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||||
R.id.sort -> showSortingDialog()
|
R.id.sort -> showSortingDialog()
|
||||||
R.id.open_camera -> launchCamera()
|
R.id.open_camera -> launchCamera()
|
||||||
R.id.show_all -> showAllMedia()
|
R.id.show_all -> showAllMedia()
|
||||||
|
R.id.temporarily_show_hidden -> temporarilyShowHidden()
|
||||||
R.id.increase_column_count -> increaseColumnCount()
|
R.id.increase_column_count -> increaseColumnCount()
|
||||||
R.id.reduce_column_count -> reduceColumnCount()
|
R.id.reduce_column_count -> reduceColumnCount()
|
||||||
R.id.settings -> launchSettings()
|
R.id.settings -> launchSettings()
|
||||||
|
@ -177,6 +178,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun temporarilyShowHidden() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private fun checkIfColorChanged() {
|
private fun checkIfColorChanged() {
|
||||||
if (DirectoryAdapter.foregroundColor != config.primaryColor) {
|
if (DirectoryAdapter.foregroundColor != config.primaryColor) {
|
||||||
DirectoryAdapter.foregroundColor = config.primaryColor
|
DirectoryAdapter.foregroundColor = config.primaryColor
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
android:id="@+id/show_all"
|
android:id="@+id/show_all"
|
||||||
android:title="@string/show_all"
|
android:title="@string/show_all"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never"/>
|
||||||
|
<item
|
||||||
|
android:id="@+id/temporarily_show_hidden"
|
||||||
|
android:title="@string/temporarily_show_hidden"
|
||||||
|
app:showAsAction="never"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/increase_column_count"
|
android:id="@+id/increase_column_count"
|
||||||
android:title="@string/increase_column_count"
|
android:title="@string/increase_column_count"
|
||||||
|
|
Loading…
Reference in a new issue