Fix issue #777
This commit is contained in:
parent
1af2ba3822
commit
d78235cb11
|
@ -1111,15 +1111,23 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
}
|
}
|
||||||
|
|
||||||
int ressource = R.drawable.ic_baseline_public_24;
|
int ressource = R.drawable.ic_baseline_public_24;
|
||||||
|
holder.binding.visibility.setContentDescription(context.getString(R.string.v_public));
|
||||||
|
holder.binding.visibilitySmall.setContentDescription(context.getString(R.string.v_public));
|
||||||
switch (status.visibility) {
|
switch (status.visibility) {
|
||||||
case "unlisted":
|
case "unlisted":
|
||||||
|
holder.binding.visibility.setContentDescription(context.getString(R.string.v_unlisted));
|
||||||
|
holder.binding.visibilitySmall.setContentDescription(context.getString(R.string.v_unlisted));
|
||||||
ressource = R.drawable.ic_baseline_lock_open_24;
|
ressource = R.drawable.ic_baseline_lock_open_24;
|
||||||
break;
|
break;
|
||||||
case "private":
|
case "private":
|
||||||
ressource = R.drawable.ic_baseline_lock_24;
|
ressource = R.drawable.ic_baseline_lock_24;
|
||||||
|
holder.binding.visibility.setContentDescription(context.getString(R.string.v_private));
|
||||||
|
holder.binding.visibilitySmall.setContentDescription(context.getString(R.string.v_private));
|
||||||
break;
|
break;
|
||||||
case "direct":
|
case "direct":
|
||||||
ressource = R.drawable.ic_baseline_mail_24;
|
ressource = R.drawable.ic_baseline_mail_24;
|
||||||
|
holder.binding.visibility.setContentDescription(context.getString(R.string.v_direct));
|
||||||
|
holder.binding.visibilitySmall.setContentDescription(context.getString(R.string.v_direct));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1277,6 +1285,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
holder.binding.actionButtonBoost.setVisibility(View.GONE);
|
holder.binding.actionButtonBoost.setVisibility(View.GONE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--- MAIN CONTENT ---
|
//--- MAIN CONTENT ---
|
||||||
holder.binding.statusContent.setText(
|
holder.binding.statusContent.setText(
|
||||||
statusToDeal.getSpanContent(context,
|
statusToDeal.getSpanContent(context,
|
||||||
|
|
Loading…
Reference in New Issue