Merge pull request #4197 from kiwix/Fixes#4196

Fixed: The bottom bar disappears when reopening the app from the background.
This commit is contained in:
Kelson 2025-02-01 12:06:42 +01:00 committed by GitHub
commit a6a38438ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,7 +84,6 @@ class KiwixReaderFragment : CoreReaderFragment() {
} }
activity.supportActionBar?.setDisplayHomeAsUpEnabled(true) activity.supportActionBar?.setDisplayHomeAsUpEnabled(true)
toolbar?.let { activity.setupDrawerToggle(it, true) } toolbar?.let { activity.setupDrawerToggle(it, true) }
setFragmentContainerBottomMarginToSizeOfNavBar()
openPageInBookFromNavigationArguments() openPageInBookFromNavigationArguments()
} }
@ -237,6 +236,7 @@ class KiwixReaderFragment : CoreReaderFragment() {
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
setFragmentContainerBottomMarginToSizeOfNavBar()
if (isFullScreenVideo || isInFullScreenMode()) { if (isFullScreenVideo || isInFullScreenMode()) {
hideNavBar() hideNavBar()
} }