Set country code as content description

pull/182/head
M66B 5 years ago
parent b73cd30e3e
commit b62612350c

@ -5739,6 +5739,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
else else
ivFlag.setImageResource(resid); 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); tvHost.setText(data.first);
tvOwner.setText(TextUtils.isEmpty(data.second.name) ? "?" : data.second.name); tvOwner.setText(TextUtils.isEmpty(data.second.name) ? "?" : data.second.name);
new Handler().post(new Runnable() { new Handler().post(new Runnable() {

Loading…
Cancel
Save