mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-04-15 20:08:32 -04:00
fix: restore temporarilyShowHidden flag on startup (#169)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user