mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:25:10 +01:00
Setting light status bar in light reader themes for android O+
This commit is contained in:
parent
204a784895
commit
bd4a839b9e
@ -174,9 +174,9 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>(),
|
|||||||
a.recycle()
|
a.recycle()
|
||||||
setNotchCutoutMode()
|
setNotchCutoutMode()
|
||||||
|
|
||||||
val systemUiFlag = when (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
var systemUiFlag = View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
|
||||||
true -> View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
false -> View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
|
systemUiFlag = systemUiFlag.or(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR)
|
||||||
}
|
}
|
||||||
reader_layout.systemUiVisibility = when (lightStatusBar) {
|
reader_layout.systemUiVisibility = when (lightStatusBar) {
|
||||||
true -> reader_layout.systemUiVisibility.or(systemUiFlag)
|
true -> reader_layout.systemUiVisibility.or(systemUiFlag)
|
||||||
|
Loading…
Reference in New Issue
Block a user