File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
kotlin/com/simplemobiletools/filemanager/pro/activities Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ android {
5858}
5959
6060dependencies {
61- implementation ' com.simplemobiletools:commons:5.33.9 '
61+ implementation ' com.simplemobiletools:commons:5.33.10 '
6262 implementation ' com.github.Stericson:RootTools:df729dcb13'
6363 implementation ' com.github.Stericson:RootShell:1.6'
6464 implementation ' com.alexvasilkov:gesture-views:2.5.2'
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ class MainActivity : SimpleActivity() {
9191 findItem(R .id.remove_favorite).isVisible = favorites.contains(fragment.currentPath)
9292 findItem(R .id.go_to_favorite).isVisible = favorites.isNotEmpty()
9393
94+ findItem(R .id.toggle_filename).isVisible = config.getFolderViewType(fragment.currentPath) == VIEW_TYPE_GRID
9495 findItem(R .id.go_home).isVisible = fragment.currentPath != config.homeFolder
9596 findItem(R .id.set_as_home).isVisible = fragment.currentPath != config.homeFolder
9697
@@ -111,6 +112,7 @@ class MainActivity : SimpleActivity() {
111112 R .id.sort -> showSortingDialog()
112113 R .id.add_favorite -> addFavorite()
113114 R .id.remove_favorite -> removeFavorite()
115+ R .id.toggle_filename -> toggleFilenameVisibility()
114116 R .id.set_as_home -> setAsHome()
115117 R .id.change_view_type -> changeViewType()
116118 R .id.temporarily_show_hidden -> tryToggleTemporarilyShowHidden()
@@ -267,6 +269,10 @@ class MainActivity : SimpleActivity() {
267269 config.removeFavorite(fragment.currentPath)
268270 }
269271
272+ private fun toggleFilenameVisibility () {
273+
274+ }
275+
270276 private fun goToFavorite () {
271277 val favorites = config.favorites
272278 val items = ArrayList <RadioItem >(favorites.size)
Original file line number Diff line number Diff line change 3232 android : icon =" @drawable/ic_star_on_vector"
3333 android : title =" @string/remove_from_favorites"
3434 app : showAsAction =" ifRoom" />
35+ <item
36+ android : id =" @+id/toggle_filename"
37+ android : icon =" @drawable/ic_label_vector"
38+ android : title =" @string/toggle_filename"
39+ app : showAsAction =" ifRoom" />
3540 <item
3641 android : id =" @+id/set_as_home"
3742 android : title =" @string/set_as_home_folder"
You can’t perform that action at this time.
0 commit comments