Enabled LT auto by default

This commit is contained in:
M66B 2022-10-01 19:34:50 +02:00
parent a0fb6463bf
commit 5d250d41be
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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);
}