Skip to content

Commit 935119f

Browse files
committed
fix #416, hide the Go To Home folder when it is the current path
1 parent 723f848 commit 935119f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class MainActivity : SimpleActivity() {
8989
findItem(R.id.remove_favorite).isVisible = favorites.contains(fragment.currentPath)
9090
findItem(R.id.go_to_favorite).isVisible = favorites.isNotEmpty()
9191

92+
findItem(R.id.go_home).isVisible = fragment.currentPath != config.homeFolder
9293
findItem(R.id.set_as_home).isVisible = fragment.currentPath != config.homeFolder
9394

9495
findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
151151
FileDirItem.sorting = context!!.config.getFolderSorting(currentPath)
152152
listItems.sort()
153153
activity?.runOnUiThread {
154+
activity?.invalidateOptionsMenu()
154155
addItems(listItems, forceRefresh)
155156
}
156157
}

0 commit comments

Comments
 (0)