Created
July 9, 2024 15:25
-
-
Save DanishAmjad12/fe9bbc34607aab8ae2b924e96e1b5a1c 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
fun updateLikeIcon(movie: Moview) | |
{ | |
if(movie.like?.isLiked==true) | |
bind.likeIcon.setImageDrawable(ContextCompat.getDrawable(context,R.drawable.ic_thumb_like)) | |
else | |
bind.likeIcon.setImageDrawable(ContextCompat.getDrawable(context,R.drawable.ic_thumb_unlike)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment