mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-17 04:10:39 +01:00
fix #416, hide the Go To Home folder when it is the current path
This commit is contained in:
parent
723f8481c3
commit
935119f998
@ -89,6 +89,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
findItem(R.id.remove_favorite).isVisible = favorites.contains(fragment.currentPath)
|
findItem(R.id.remove_favorite).isVisible = favorites.contains(fragment.currentPath)
|
||||||
findItem(R.id.go_to_favorite).isVisible = favorites.isNotEmpty()
|
findItem(R.id.go_to_favorite).isVisible = favorites.isNotEmpty()
|
||||||
|
|
||||||
|
findItem(R.id.go_home).isVisible = fragment.currentPath != config.homeFolder
|
||||||
findItem(R.id.set_as_home).isVisible = fragment.currentPath != config.homeFolder
|
findItem(R.id.set_as_home).isVisible = fragment.currentPath != config.homeFolder
|
||||||
|
|
||||||
findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden
|
findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden
|
||||||
|
@ -151,6 +151,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
|||||||
FileDirItem.sorting = context!!.config.getFolderSorting(currentPath)
|
FileDirItem.sorting = context!!.config.getFolderSorting(currentPath)
|
||||||
listItems.sort()
|
listItems.sort()
|
||||||
activity?.runOnUiThread {
|
activity?.runOnUiThread {
|
||||||
|
activity?.invalidateOptionsMenu()
|
||||||
addItems(listItems, forceRefresh)
|
addItems(listItems, forceRefresh)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user