mirror of https://github.com/M66B/FairEmail.git
Disabled fake dark by default
This commit is contained in:
parent
a1d45a2684
commit
c026a7a60b
|
@ -7118,7 +7118,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
level = prefs.getInt("log_level", Log.getDefaultLogLevel());
|
||||
|
||||
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.show_recent = prefs.getBoolean("show_recent", false);
|
||||
|
||||
|
|
|
@ -634,7 +634,8 @@ public class ApplicationEx extends Application
|
|||
} else if (version < 1927) {
|
||||
if (!prefs.contains("auto_identity"))
|
||||
editor.putBoolean("auto_identity", true);
|
||||
}
|
||||
} else if (version < 1931)
|
||||
editor.remove("fake_dark");
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)
|
||||
editor.remove("background_service");
|
||||
|
|
|
@ -1783,7 +1783,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
swUndoManager.setChecked(prefs.getBoolean("undo_manager", false));
|
||||
swWebViewLegacy.setChecked(prefs.getBoolean("webview_legacy", 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));
|
||||
swModSeq.setChecked(prefs.getBoolean("use_modseq", true));
|
||||
swUid.setChecked(prefs.getBoolean("uid_command", false));
|
||||
|
|
|
@ -389,7 +389,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
|||
if (WebViewFeature.ALGORITHMIC_DARKENING.equals(feature)) {
|
||||
if (BuildConfig.DEBUG) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean fake_dark = prefs.getBoolean("fake_dark", true);
|
||||
boolean fake_dark = prefs.getBoolean("fake_dark", false);
|
||||
if (fake_dark)
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue