mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
Small improvements
This commit is contained in:
@@ -5734,14 +5734,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
resid = getResources().getIdentifier(
|
||||
"flag_" + data.second.country.toLowerCase(Locale.ROOT),
|
||||
"drawable", getContext().getPackageName());
|
||||
|
||||
if (resid == 0)
|
||||
ivFlag.setImageDrawable(null);
|
||||
else
|
||||
ivFlag.setImageResource(resid);
|
||||
|
||||
ivFlag.setContentDescription(data.second.country);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
||||
ivFlag.setTooltipText(data.second.country);
|
||||
|
||||
tvHost.setText(data.first);
|
||||
tvOwner.setText(TextUtils.isEmpty(data.second.name) ? "?" : data.second.name);
|
||||
|
||||
Reference in New Issue
Block a user