Android: fix load anchor not reset
This commit is contained in:
parent
76bcedac98
commit
c3e05a39c0
@ -47,7 +47,7 @@ class ListAdapter extends RecyclerView.Adapter<ListAdapter.DoricViewHolder> {
|
||||
}
|
||||
|
||||
int itemCount = 0;
|
||||
private int loadAnchor = 0;
|
||||
int loadAnchor = -1;
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
|
@ -201,6 +201,7 @@ public class ListNode extends SuperNode<RecyclerView> implements IDoricScrollabl
|
||||
}
|
||||
String funcId = prop.asString().value();
|
||||
if (!funcId.equals(this.renderItemFuncId)) {
|
||||
this.listAdapter.loadAnchor = -1;
|
||||
this.renderItemFuncId = funcId;
|
||||
// If reset renderItem,should reset native cache.
|
||||
for (int index = 0; index < this.itemValues.size(); index++) {
|
||||
|
Reference in New Issue
Block a user