mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix readerActivity systemBarsBehavior resetting on some devices
This commit is contained in:
parent
7e21fa855b
commit
620f6dc90d
1 changed files with 2 additions and 1 deletions
|
@ -771,7 +771,7 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
|
|||
firstPass = false
|
||||
lastVis = vis
|
||||
}
|
||||
|
||||
wic.systemBarsBehavior = WindowInsetsControllerCompat.BEHAVIOR_SHOW_BARS_BY_SWIPE
|
||||
if (!preferences.fullscreen().get() && sheetManageNavColor) {
|
||||
window.navigationBarColor = getResourceColor(R.attr.colorSurface)
|
||||
}
|
||||
|
@ -919,6 +919,7 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
|
|||
} else {
|
||||
if (preferences.fullscreen().get()) {
|
||||
wic.hide(systemBars())
|
||||
wic.systemBarsBehavior = WindowInsetsControllerCompat.BEHAVIOR_SHOW_BARS_BY_SWIPE
|
||||
}
|
||||
|
||||
if (animate && binding.readerMenu.isVisible) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue