mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-06-25 14:40:09 +03:00
Merge branch '0xd9a-cw_hide_polls' into develop
This commit is contained in:
commit
dd2a4dcf28
1 changed files with 5 additions and 1 deletions
|
@ -2107,7 +2107,11 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
adapter.notifyItemChanged(holder.getBindingAdapterPosition());
|
adapter.notifyItemChanged(holder.getBindingAdapterPosition());
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
if (statusToDeal.isExpended) {
|
||||||
holder.binding.poll.pollContainer.setVisibility(View.VISIBLE);
|
holder.binding.poll.pollContainer.setVisibility(View.VISIBLE);
|
||||||
|
} else {
|
||||||
|
holder.binding.poll.pollContainer.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
String pollInfo = context.getResources().getQuantityString(R.plurals.number_of_voters, normalize, normalize);
|
String pollInfo = context.getResources().getQuantityString(R.plurals.number_of_voters, normalize, normalize);
|
||||||
if (statusToDeal.poll.expired) {
|
if (statusToDeal.poll.expired) {
|
||||||
pollInfo += " - " + context.getString(R.string.poll_finish_at, MastodonHelper.dateToStringPoll(statusToDeal.poll.expires_at));
|
pollInfo += " - " + context.getString(R.string.poll_finish_at, MastodonHelper.dateToStringPoll(statusToDeal.poll.expires_at));
|
||||||
|
|
Loading…
Reference in a new issue