Skip to content

Commit 4ab9e25

Browse files
committed
show own vote after voted
closes #113
1 parent e14dfda commit 4ab9e25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/PollOptionStatusDisplayItem.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@ public Holder(Activity activity, ViewGroup parent){
7676
@Override
7777
public void onBind(PollOptionStatusDisplayItem item){
7878
text.setText(item.text);
79-
icon.setVisibility(item.showResults ? View.GONE : View.VISIBLE);
79+
// icon.setVisibility(item.showResults ? View.GONE : View.VISIBLE);
8080
percent.setVisibility(item.showResults ? View.VISIBLE : View.GONE);
8181
itemView.setClickable(!item.showResults);
8282
if(item.showResults){
83+
icon.setSelected(item.poll.ownVotes.contains(item.poll.options.indexOf(item.option)));
8384
progressBg.setLevel(Math.round(10000f*item.votesFraction));
8485
button.setBackground(progressBg);
8586
itemView.setSelected(item.isMostVoted);

0 commit comments

Comments
 (0)