Disable filtering on not detecting language

This commit is contained in:
M66B
2020-03-27 12:08:49 +01:00
parent 736ac7c79d
commit af0e83d03b
2 changed files with 7 additions and 2 deletions

View File

@@ -362,10 +362,13 @@ public class ViewModelMessages extends ViewModel {
this.filter_unflagged = prefs.getBoolean("filter_unflagged", false);
this.filter_unknown = prefs.getBoolean("filter_unknown", false);
this.filter_snoozed = prefs.getBoolean("filter_snoozed", true);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q)
boolean language_detection = prefs.getBoolean("language_detection", false);
if (!language_detection || Build.VERSION.SDK_INT < Build.VERSION_CODES.Q)
this.filter_language = null;
else
this.filter_language = prefs.getString("filter_language", null);
this.debug = prefs.getBoolean("debug", false);
}