Fix for light theme bugging out and being dark
Same as the dark theme earlier just reverse the conditions (always light with system dark theme)
This commit is contained in:
parent
ccd1c7bc1d
commit
2c33040a5f
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ open class MainActivity : BaseActivity() {
|
||||||
lateinit var tabAnimator: TabsAnimator
|
lateinit var tabAnimator: TabsAnimator
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
if (preferences.theme() in 2..4) {
|
if (preferences.theme() in 1..4) {
|
||||||
Timber.d("Manually instantiating WebView to avoid night mode issue.");
|
Timber.d("Manually instantiating WebView to avoid night mode issue.")
|
||||||
try {
|
try {
|
||||||
WebView(applicationContext)
|
WebView(applicationContext)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
|
Reference in a new issue