Created
October 2, 2016 16:40
-
-
Save pavlospt/f01cdc2645696eb9fe2aee514c5e76a5 to your computer and use it in GitHub Desktop.
OnViewRecycled Implementation
This file contains hidden or 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 onViewRecycled(Candidates holder) { | |
if(holder != null) { | |
holder.binding.getCandidateVM().removePropertyChangedCallback(); | |
holder.binding.setCandidateVM(null); | |
holder.binding.setHighlightTerm(null); | |
holder.binding.setShowJobTitle(false); | |
holder.binding.setShowStage(false); | |
holder.binding.executePendingBindings(); | |
Glide.clear(holder.binding.candidateBrowserAvatar); | |
holder.binding.candidateBrowserAvatar.setImageDrawable(null); | |
} | |
super.onViewRecycled(holder); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I dont understand