Disable language detection by default

pull/178/head
M66B 5 years ago
parent 41eb8994c1
commit 1e5bf48912

@ -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…
Cancel
Save