mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
add a menu button for temporarily showing hidden folders
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user