Skip to content

Instantly share code, notes, and snippets.

@pavlospt
Created October 2, 2016 16:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavlospt/f01cdc2645696eb9fe2aee514c5e76a5 to your computer and use it in GitHub Desktop.
Save pavlospt/f01cdc2645696eb9fe2aee514c5e76a5 to your computer and use it in GitHub Desktop.
OnViewRecycled Implementation
@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);
}
@wisnukurniawan
Copy link

I dont understand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment