Small improvement

pull/212/head
M66B 2 years ago
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));
domains.add(domain);
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…
Cancel
Save