Fix for reader crash in < Android 9
(cherry picked from commit 85ed7a74577ff1bdf24a56ccdced5076e6aadb94)
This commit is contained in:
parent
4a71eb2ff0
commit
1b91062767
@ -914,9 +914,11 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
|||||||
.onEach { setTrueColor(it) }
|
.onEach { setTrueColor(it) }
|
||||||
.launchIn(scope)
|
.launchIn(scope)
|
||||||
|
|
||||||
preferences.cutoutShort().asFlow()
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||||
.onEach { setCutoutShort(it) }
|
preferences.cutoutShort().asFlow()
|
||||||
.launchIn(scope)
|
.onEach { setCutoutShort(it) }
|
||||||
|
.launchIn(scope)
|
||||||
|
}
|
||||||
|
|
||||||
preferences.keepScreenOn().asFlow()
|
preferences.keepScreenOn().asFlow()
|
||||||
.onEach { setKeepScreenOn(it) }
|
.onEach { setKeepScreenOn(it) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user