mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
c339b13273
commit
ebcf36fb4c
|
@ -5288,12 +5288,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
froms.add(from);
|
||||
int at = from.indexOf('@');
|
||||
String domain = (at < 0 ? from : from.substring(at));
|
||||
if (!Objects.equals(from, domain))
|
||||
domains.add(domain);
|
||||
}
|
||||
cbNotAgainSender.setText(context.getString(R.string.title_no_ask_for_again,
|
||||
TextUtils.join(", ", froms)));
|
||||
cbNotAgainDomain.setText(context.getString(R.string.title_no_ask_for_again,
|
||||
TextUtils.join(", ", domains)));
|
||||
cbNotAgainDomain.setVisibility(domains.size() > 0 ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
cbNotAgainDomain.setEnabled(false);
|
||||
|
|
Loading…
Reference in New Issue