Simplification

pull/208/head
M66B 3 years ago
parent aa5b707ea7
commit b73b66411b

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

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

Loading…
Cancel
Save