From 2c83e9a14e46a7804f6b3fcf8efb9536da194aef Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 28 Nov 2019 19:59:00 +0100 Subject: [PATCH] do not show the "Set as home folder" menu if at home --- .../filemanager/pro/activities/MainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt index 6e49b88d..008703c6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt @@ -99,6 +99,8 @@ class MainActivity : SimpleActivity() { findItem(R.id.remove_favorite).isVisible = favorites.contains(fragment.currentPath) findItem(R.id.go_to_favorite).isVisible = favorites.isNotEmpty() + findItem(R.id.set_as_home).isVisible = fragment.currentPath != config.homeFolder + findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden findItem(R.id.stop_showing_hidden).isVisible = config.temporarilyShowHidden }