Updated AndroidX

This commit is contained in:
M66B
2022-11-09 22:28:59 +01:00
parent a6f39a1fac
commit 39eb835d73
6 changed files with 12 additions and 12 deletions

View File

@@ -162,7 +162,7 @@ public class ActivityAMP extends ActivityBase {
WebSettings settings = wvAmp.getSettings();
boolean dark = (Helper.isDarkTheme(this) && !force_light);
boolean canDarken = WebViewEx.isFeatureSupported(this, WebViewFeature.ALGORITHMIC_DARKENING);
if (canDarken && Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
if (canDarken)
WebSettingsCompat.setAlgorithmicDarkeningAllowed(settings, dark);
}