fix: restore temporarilyShowHidden flag on startup (#169)

This commit is contained in:
Agnieszka C
2025-05-14 19:42:48 +02:00
committed by GitHub
parent 73e9080b67
commit 25cfd43655

View File

@@ -120,6 +120,7 @@ class MainActivity : SimpleActivity() {
updateMaterialActivityViews(binding.mainCoordinator, null, useTransparentNavigation = false, useTopSearchMenu = true)
if (savedInstanceState == null) {
config.temporarilyShowHidden = false
initFragments()
tryInitFileManager()
checkWhatsNewDialog()
@@ -167,11 +168,6 @@ class MainActivity : SimpleActivity() {
config.lastUsedViewPagerPage = binding.mainViewPager.currentItem
}
override fun onDestroy() {
super.onDestroy()
config.temporarilyShowHidden = false
}
override fun onBackPressed() {
val currentFragment = getCurrentFragment()
if (binding.mainMenu.isSearchOpen) {