-
-
Save anonymous/27236ef76b0fdbbb9593a1c78b583280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void liked(LikeButton likeButton) { | |
QuestionData questionHolder = data.get(position); | |
Voting voting = new Voting(getAdapterPosition(), ViewpagerAdapter.this, questionId, questionHolder); | |
voting.mVotingInterface=new Voting.VotingInterface() { | |
@Override | |
public void updateRecycle() { | |
notifyDataSetChanged(); | |
} | |
}; | |
voting.realTimeUpVoting(); | |
voting.onUpVote(); | |
voting.mVotingInterface.updateRecycle(); | |
} | |
@Override | |
public void unLiked(LikeButton likeButton) { | |
QuestionData questionHolder = data.get(position); | |
Voting voting = new Voting(getAdapterPosition(), ViewpagerAdapter.this, questionId, questionHolder); | |
voting.mVotingInterface=new Voting.VotingInterface() { | |
@Override | |
public void updateRecycle() { | |
notifyDataSetChanged(); | |
} | |
}; | |
voting.realTimeDownVoting(); | |
voting.onDownVote(); | |
voting.mVotingInterface.updateRecycle(); | |
} | |
}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment