Disabled fake dark by default

This commit is contained in:
M66B 2022-07-05 19:09:18 +02:00
parent a1d45a2684
commit c026a7a60b
4 changed files with 5 additions and 4 deletions

View File

@ -7118,7 +7118,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
level = prefs.getInt("log_level", Log.getDefaultLogLevel()); level = prefs.getInt("log_level", Log.getDefaultLogLevel());
this.canDarken = WebViewEx.isFeatureSupported(context, WebViewFeature.ALGORITHMIC_DARKENING); this.canDarken = WebViewEx.isFeatureSupported(context, WebViewFeature.ALGORITHMIC_DARKENING);
this.fake_dark = prefs.getBoolean("fake_dark", true); this.fake_dark = prefs.getBoolean("fake_dark", false);
this.webview_legacy = prefs.getBoolean("webview_legacy", false); this.webview_legacy = prefs.getBoolean("webview_legacy", false);
this.show_recent = prefs.getBoolean("show_recent", false); this.show_recent = prefs.getBoolean("show_recent", false);

View File

@ -634,7 +634,8 @@ public class ApplicationEx extends Application
} else if (version < 1927) { } else if (version < 1927) {
if (!prefs.contains("auto_identity")) if (!prefs.contains("auto_identity"))
editor.putBoolean("auto_identity", true); editor.putBoolean("auto_identity", true);
} } else if (version < 1931)
editor.remove("fake_dark");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)
editor.remove("background_service"); editor.remove("background_service");

View File

@ -1783,7 +1783,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swUndoManager.setChecked(prefs.getBoolean("undo_manager", false)); swUndoManager.setChecked(prefs.getBoolean("undo_manager", false));
swWebViewLegacy.setChecked(prefs.getBoolean("webview_legacy", false)); swWebViewLegacy.setChecked(prefs.getBoolean("webview_legacy", false));
swBrowserZoom.setChecked(prefs.getBoolean("browser_zoom", false)); swBrowserZoom.setChecked(prefs.getBoolean("browser_zoom", false));
swFakeDark.setChecked(prefs.getBoolean("fake_dark", true)); swFakeDark.setChecked(prefs.getBoolean("fake_dark", false));
swShowRecent.setChecked(prefs.getBoolean("show_recent", false)); swShowRecent.setChecked(prefs.getBoolean("show_recent", false));
swModSeq.setChecked(prefs.getBoolean("use_modseq", true)); swModSeq.setChecked(prefs.getBoolean("use_modseq", true));
swUid.setChecked(prefs.getBoolean("uid_command", false)); swUid.setChecked(prefs.getBoolean("uid_command", false));

View File

@ -389,7 +389,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
if (WebViewFeature.ALGORITHMIC_DARKENING.equals(feature)) { if (WebViewFeature.ALGORITHMIC_DARKENING.equals(feature)) {
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean fake_dark = prefs.getBoolean("fake_dark", true); boolean fake_dark = prefs.getBoolean("fake_dark", false);
if (fake_dark) if (fake_dark)
return false; return false;
} }