mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Enabled LT auto by default
This commit is contained in:
parent
a0fb6463bf
commit
5d250d41be
2 changed files with 2 additions and 2 deletions
|
@ -2043,7 +2043,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
spLanguage.setSelection(selected);
|
||||
|
||||
swLanguageTool.setChecked(prefs.getBoolean("lt_enabled", false));
|
||||
swLanguageToolAuto.setChecked(prefs.getBoolean("lt_auto", false));
|
||||
swLanguageToolAuto.setChecked(prefs.getBoolean("lt_auto", true));
|
||||
swLanguageToolAuto.setEnabled(swLanguageTool.isChecked());
|
||||
swLanguageToolPicky.setChecked(prefs.getBoolean("lt_picky", false));
|
||||
swLanguageToolPicky.setEnabled(swLanguageTool.isChecked());
|
||||
|
|
|
@ -58,7 +58,7 @@ public class LanguageTool {
|
|||
static boolean isAuto(Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean lt_enabled = prefs.getBoolean("lt_enabled", false);
|
||||
boolean lt_auto = prefs.getBoolean("lt_auto", false);
|
||||
boolean lt_auto = prefs.getBoolean("lt_auto", true);
|
||||
return (lt_enabled && lt_auto);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue