Simplification

This commit is contained in:
M66B 2022-06-10 08:33:29 +02:00
parent aa5b707ea7
commit b73b66411b
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ public class ActivityAMP extends ActivityBase {
if (WebViewEx.isFeatureSupported(WebViewFeature.FORCE_DARK))
WebSettingsCompat.setForceDark(settings, dark ? FORCE_DARK_ON : FORCE_DARK_OFF);
} else
settings.setAlgorithmicDarkeningAllowed(dark && !force_light);
settings.setAlgorithmicDarkeningAllowed(dark);
}
private void load() {

View File

@ -90,7 +90,7 @@ public class FragmentDialogOpenFull extends FragmentDialogBase {
if (WebViewEx.isFeatureSupported(WebViewFeature.FORCE_DARK))
WebSettingsCompat.setForceDark(settings, dark ? FORCE_DARK_ON : FORCE_DARK_OFF);
} else
settings.setAlgorithmicDarkeningAllowed(dark && !force_light);
settings.setAlgorithmicDarkeningAllowed(dark);
settings.setLoadsImagesAutomatically(true);
settings.setBlockNetworkLoads(false);