mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
Simplifiy condition for turning on dark mode
This commit is contained in:
parent
d0d0104a84
commit
a9943a7ab6
@ -1549,12 +1549,8 @@ public abstract class CoreMainActivity extends BaseActivity
|
||||
}
|
||||
|
||||
private void updateNightMode() {
|
||||
painter.update(getCurrentWebView(), kiwixWebView -> {
|
||||
if (kiwixWebView.getUrl() != null) {
|
||||
return !kiwixWebView.getUrl().equals(HOME_URL);
|
||||
}
|
||||
return true;
|
||||
}, videoView);
|
||||
painter.update(getCurrentWebView(), kiwixWebView -> kiwixWebView.getUrl() == null
|
||||
|| !kiwixWebView.getUrl().equals(HOME_URL), videoView);
|
||||
}
|
||||
|
||||
private void loadPrefs() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user