Skip to content

Commit

Permalink
Show correct reaction amount when user has reacted to the content (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
kekkyojin authored Oct 22, 2021
1 parent da3731b commit 68f36b0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2064,8 +2064,10 @@ private void updateContentReactions() {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
likeReactionAmount.setText(String.valueOf(reactions.getOthersLikes()));
dislikeReactionAmount.setText(String.valueOf(reactions.getOthersDislikes()));
int likes = reactions.isLiked() ? reactions.getOthersLikes() + 1 : reactions.getOthersLikes();
int dislikes = reactions.isDisliked() ? reactions.getOthersDislikes() + 1 : reactions.getOthersDislikes();
likeReactionAmount.setText(String.valueOf(likes));
dislikeReactionAmount.setText(String.valueOf(dislikes));

int inactiveColor = 0;
int fireActive = 0;
Expand Down

0 comments on commit 68f36b0

Please sign in to comment.