mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Disable language detection by default
This commit is contained in:
parent
41eb8994c1
commit
1e5bf48912
2 changed files with 2 additions and 2 deletions
|
@ -386,7 +386,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|||
swConversationActions.setChecked(prefs.getBoolean("conversation_actions", true));
|
||||
swConversationActionsReplies.setChecked(prefs.getBoolean("conversation_actions_replies", true));
|
||||
swConversationActionsReplies.setEnabled(swConversationActions.isChecked());
|
||||
swLanguageDetection.setChecked(prefs.getBoolean("language_detection", true));
|
||||
swLanguageDetection.setChecked(prefs.getBoolean("language_detection", false));
|
||||
swLanguageDetection.setVisibility(Build.VERSION.SDK_INT < Build.VERSION_CODES.Q ? View.GONE : View.VISIBLE);
|
||||
|
||||
int default_snooze = prefs.getInt("default_snooze", 1);
|
||||
|
|
|
@ -1108,7 +1108,7 @@ public class HtmlHelper {
|
|||
static String getLanguage(Context context, String body) {
|
||||
try {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean language_detection = prefs.getBoolean("language_detection", true);
|
||||
boolean language_detection = prefs.getBoolean("language_detection", false);
|
||||
if (!language_detection)
|
||||
return null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue