Skip to content

Commit

Permalink
Merge branch 'feat/view-poll-results'
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Nov 17, 2023
2 parents 43fe03c + f5e1326 commit 1525ef8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void onBind(PollFooterStatusDisplayItem item){
text+=" "+sep+" "+item.parentFragment.getString(R.string.poll_closed);
}
this.text.setText(text);
resultsButton.setVisibility(item.poll.isExpired() || item.poll.voted ? View.GONE : View.VISIBLE);
resultsButton.setText(item.resultsVisible ? R.string.sk_poll_view : R.string.sk_poll_results);
voteButton.setVisibility(item.poll.isExpired() || item.poll.voted || (!item.poll.multiple && !GlobalUserPreferences.voteButtonForSingleChoice) ? View.GONE : View.VISIBLE);
voteButton.setEnabled(item.poll.selectedOptions!=null && !item.poll.selectedOptions.isEmpty() && !item.resultsVisible);
Expand Down

0 comments on commit 1525ef8

Please sign in to comment.