Fix for reader crash in < Android 9
This commit is contained in:
parent
b8a98ef5e4
commit
85ed7a7457
1 changed files with 5 additions and 3 deletions
|
@ -658,9 +658,11 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
|||
.onEach { setTrueColor(it) }
|
||||
.launchIn(scope)
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
preferences.cutoutShort().asFlow()
|
||||
.onEach { setCutoutShort(it) }
|
||||
.launchIn(scope)
|
||||
}
|
||||
|
||||
preferences.keepScreenOn().asFlow()
|
||||
.onEach { setKeepScreenOn(it) }
|
||||
|
|
Reference in a new issue