mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 14:52:13 -04:00
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:
parent
d2ba06baeb
commit
a9088c0918
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user