Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[Android] fix image flash in sticky item (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
yxping authored and YorkShen committed Oct 15, 2018
1 parent c07d81b commit 4791dfb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@
*/
public class ListBaseViewHolder extends RecyclerView.ViewHolder {
private int mViewType;
private boolean isRecycled = true;
private boolean isRecycled;
private WeakReference<WXComponent> mComponent;

public ListBaseViewHolder(WXComponent component, int viewType) {
super(component.getHostView());
mViewType = viewType;
mComponent = new WeakReference(component);
// This tag is used to determine whether bind / rebind data is needed.
// It should be false When component can not be recycled Which means
// no need to bind / rebind data.
isRecycled = component.canRecycled();
}

public ListBaseViewHolder(View view, int viewType) {
Expand Down

0 comments on commit 4791dfb

Please sign in to comment.