mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-16 10:56:50 -04:00
Improved the full screen mode since the systemBars were visible in fullScreen mode.
This commit is contained in:
parent
0c15a406f0
commit
d94ca866df
@ -96,7 +96,7 @@ fun View.showFullScreenMode(window: Window) {
|
||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
WindowInsetsControllerCompat(window, window.decorView).apply {
|
||||
hide(WindowInsetsCompat.Type.statusBars())
|
||||
hide(WindowInsetsCompat.Type.systemBars())
|
||||
hide(WindowInsetsCompat.Type.displayCutout())
|
||||
systemBarsBehavior =
|
||||
WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
|
||||
@ -113,7 +113,7 @@ fun View.closeFullScreenMode(window: Window) {
|
||||
WindowCompat.setDecorFitsSystemWindows(window, true)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
WindowInsetsControllerCompat(window, window.decorView).apply {
|
||||
show(WindowInsetsCompat.Type.statusBars())
|
||||
show(WindowInsetsCompat.Type.systemBars())
|
||||
show(WindowInsetsCompat.Type.displayCutout())
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user