mirror of https://github.com/M66B/FairEmail.git
Enabled LT auto by default
This commit is contained in:
parent
a0fb6463bf
commit
5d250d41be
|
@ -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 New Issue