Skip to content

Commit

Permalink
Merge pull request #4197 from kiwix/Fixes#4196
Browse files Browse the repository at this point in the history
Fixed: The bottom bar disappears when reopening the app from the background.
  • Loading branch information
kelson42 authored Feb 1, 2025
2 parents e61e3e8 + b573fe4 commit a6a3843
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class KiwixReaderFragment : CoreReaderFragment() {
}
activity.supportActionBar?.setDisplayHomeAsUpEnabled(true)
toolbar?.let { activity.setupDrawerToggle(it, true) }
setFragmentContainerBottomMarginToSizeOfNavBar()
openPageInBookFromNavigationArguments()
}

Expand Down Expand Up @@ -237,6 +236,7 @@ class KiwixReaderFragment : CoreReaderFragment() {

override fun onResume() {
super.onResume()
setFragmentContainerBottomMarginToSizeOfNavBar()
if (isFullScreenVideo || isInFullScreenMode()) {
hideNavBar()
}
Expand Down

0 comments on commit a6a3843

Please sign in to comment.