Fixed, Sidebar adds unwanted space after closing the full screen mode.

* Previously, when exiting full-screen mode, the `WindowCompat.setDecorFitsSystemWindows` configuration was set to `false`, causing a blank space between the sidebar logo and the Bookmark item.
* This change sets the configuration to `true` when exiting full-screen mode to ensure proper adjustment of the sidebar content, eliminating the undesired blank space.
* The adjustment is necessary to maintain a seamless layout and appearance, particularly after transitioning from full-screen mode.
This commit is contained in:
MohitMaliFtechiz 2023-11-21 18:01:52 +05:30 committed by Kelson
parent d2ba06baeb
commit a9088c0918

View File

@ -1422,7 +1422,7 @@ abstract class CoreReaderFragment :
exitFullscreenButton?.visibility = View.GONE
exitFullscreenButton?.background?.alpha = 255
val window = requireActivity().window
WindowCompat.setDecorFitsSystemWindows(window, false)
WindowCompat.setDecorFitsSystemWindows(window, true)
WindowInsetsControllerCompat(window, window.decorView.rootView).apply {
show(WindowInsetsCompat.Type.systemBars())
window.decorView.rootView.requestLayout()