mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Hide language when no detection
This commit is contained in:
parent
3267eaead5
commit
bea4dc52b0
1 changed files with 8 additions and 2 deletions
|
@ -243,6 +243,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
private boolean inline;
|
private boolean inline;
|
||||||
private boolean collapse_quotes;
|
private boolean collapse_quotes;
|
||||||
private boolean authentication;
|
private boolean authentication;
|
||||||
|
private boolean language_detection;
|
||||||
private static boolean debug;
|
private static boolean debug;
|
||||||
|
|
||||||
private boolean gotoTop = false;
|
private boolean gotoTop = false;
|
||||||
|
@ -1423,8 +1424,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
.append(message.total == null ? "-" : Helper.humanReadableByteCount(message.total, true));
|
.append(message.total == null ? "-" : Helper.humanReadableByteCount(message.total, true));
|
||||||
tvSizeEx.setText(size.toString());
|
tvSizeEx.setText(size.toString());
|
||||||
|
|
||||||
tvLanguageTitle.setVisibility(show_addresses && message.language != null ? View.VISIBLE : View.GONE);
|
tvLanguageTitle.setVisibility(
|
||||||
tvLanguage.setVisibility(show_addresses && message.language != null ? View.VISIBLE : View.GONE);
|
show_addresses && language_detection && message.language != null
|
||||||
|
? View.VISIBLE : View.GONE);
|
||||||
|
tvLanguage.setVisibility(
|
||||||
|
show_addresses && language_detection && message.language != null
|
||||||
|
? View.VISIBLE : View.GONE);
|
||||||
tvLanguage.setText(message.language == null ? null : new Locale(message.language).getDisplayLanguage());
|
tvLanguage.setText(message.language == null ? null : new Locale(message.language).getDisplayLanguage());
|
||||||
|
|
||||||
tvSubjectEx.setVisibility(show_addresses ? View.VISIBLE : View.GONE);
|
tvSubjectEx.setVisibility(show_addresses ? View.VISIBLE : View.GONE);
|
||||||
|
@ -4580,6 +4585,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
this.inline = prefs.getBoolean("inline_images", false);
|
this.inline = prefs.getBoolean("inline_images", false);
|
||||||
this.collapse_quotes = prefs.getBoolean("collapse_quotes", false);
|
this.collapse_quotes = prefs.getBoolean("collapse_quotes", false);
|
||||||
this.authentication = prefs.getBoolean("authentication", true);
|
this.authentication = prefs.getBoolean("authentication", true);
|
||||||
|
this.language_detection = prefs.getBoolean("language_detection", false);
|
||||||
|
|
||||||
debug = prefs.getBoolean("debug", false);
|
debug = prefs.getBoolean("debug", false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue