Fixed background / cannot darken

pull/208/head
M66B 3 years ago
parent 5526eb435b
commit 00b04423de

@ -121,7 +121,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
boolean canDarken = WebViewEx.isFeatureSupported(WebViewFeature.ALGORITHMIC_DARKENING);
if (canDarken)
WebSettingsCompat.setAlgorithmicDarkeningAllowed(settings, dark && !force_light);
setBackgroundColor(canDarken && force_light ? Color.WHITE : Color.TRANSPARENT);
setBackgroundColor(canDarken && dark && !force_light ? Color.TRANSPARENT : Color.WHITE);
float fontSize = 16f /* Default */ *
(browser_zoom ? 1f : message_zoom / 100f);

Loading…
Cancel
Save