From afb5d3bbcaf9e083f412613ee7a2fca968f57c3e Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 24 Jul 2022 23:16:49 +0200 Subject: [PATCH] refresh menu item visibility only once we have fragments --- .../filemanager/pro/activities/MainActivity.kt | 4 ++++ 1 file changed, 4 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 1af79240..789487cb 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 @@ -407,6 +407,10 @@ class MainActivity : SimpleActivity() { } }) main_view_pager.currentItem = config.lastUsedViewPagerPage + + main_view_pager.onGlobalLayout { + refreshMenuItems() + } } private fun setupTabs() {