mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-11 00:23:58 -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?.visibility = View.GONE
|
||||||
exitFullscreenButton?.background?.alpha = 255
|
exitFullscreenButton?.background?.alpha = 255
|
||||||
val window = requireActivity().window
|
val window = requireActivity().window
|
||||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
WindowCompat.setDecorFitsSystemWindows(window, true)
|
||||||
WindowInsetsControllerCompat(window, window.decorView.rootView).apply {
|
WindowInsetsControllerCompat(window, window.decorView.rootView).apply {
|
||||||
show(WindowInsetsCompat.Type.systemBars())
|
show(WindowInsetsCompat.Type.systemBars())
|
||||||
window.decorView.rootView.requestLayout()
|
window.decorView.rootView.requestLayout()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user