Don't use platform attributes for white/black reader backgrounds

Probably fixes #8946

(cherry picked from commit 7a972dfdb7cfb7578b3f9dd63ba0fdcb77b16b24)
This commit is contained in:
arkon 2023-01-18 22:49:28 -05:00 committed by Jobobby04
parent 34b60a435e
commit 354bb2fd83

View File

@ -1596,10 +1596,10 @@ class ReaderActivity : BaseActivity() {
.onEach { theme -> .onEach { theme ->
binding.readerContainer.setBackgroundResource( binding.readerContainer.setBackgroundResource(
when (theme) { when (theme) {
0 -> android.R.color.white 0 -> R.color.md_white_1000
2 -> R.color.reader_background_dark 2 -> R.color.reader_background_dark
3 -> automaticBackgroundColor() 3 -> automaticBackgroundColor()
else -> android.R.color.black else -> R.color.md_black_1000
}, },
) )
} }
@ -1677,7 +1677,7 @@ class ReaderActivity : BaseActivity() {
return if (baseContext.isNightMode()) { return if (baseContext.isNightMode()) {
R.color.reader_background_dark R.color.reader_background_dark
} else { } else {
android.R.color.white R.color.md_white_1000
} }
} }