Set country code as content description

This commit is contained in:
M66B 2020-06-23 19:54:53 +02:00
parent b73cd30e3e
commit b62612350c
1 changed files with 4 additions and 0 deletions

View File

@ -5739,6 +5739,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
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);
new Handler().post(new Runnable() {