mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Added fake dark
This commit is contained in:
@@ -369,6 +369,11 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
||||
|
||||
public static boolean isFeatureSupported(Context context, String feature) {
|
||||
if (WebViewFeature.ALGORITHMIC_DARKENING.equals(feature)) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean fake_dark = prefs.getBoolean("fake_dark", false);
|
||||
if (fake_dark)
|
||||
return false;
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user