Added setting to disable language detection

This commit is contained in:
M66B
2020-03-26 15:34:42 +01:00
parent 1c437a52f5
commit f6183c9aac
4 changed files with 29 additions and 4 deletions

View File

@@ -1108,8 +1108,8 @@ public class HtmlHelper {
static String getLanguage(Context context, String body) {
try {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean conversation_actions = prefs.getBoolean("conversation_actions", true);
if (!conversation_actions)
boolean language_detection = prefs.getBoolean("language_detection", true);
if (!language_detection)
return null;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {