mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Fixed force light background color
This commit is contained in:
@@ -107,9 +107,9 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
||||
|
||||
WebSettings settings = getSettings();
|
||||
|
||||
boolean dark = (Helper.isDarkTheme(context) && !force_light);
|
||||
boolean dark = Helper.isDarkTheme(context);
|
||||
if (WebViewEx.isFeatureSupported(WebViewFeature.FORCE_DARK))
|
||||
WebSettingsCompat.setForceDark(settings, dark ? FORCE_DARK_ON : FORCE_DARK_OFF);
|
||||
WebSettingsCompat.setForceDark(settings, dark && !force_light ? FORCE_DARK_ON : FORCE_DARK_OFF);
|
||||
if (!dark)
|
||||
setBackgroundColor(ColorUtils.setAlphaComponent(Color.WHITE, 127));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user