fix(android): listview not update when delete invisible items

This commit is contained in:
iPel
2022-09-07 17:15:51 +08:00
committed by zoomchan-cxj
parent 46cdc41561
commit e893f503c1
@@ -131,6 +131,7 @@ public class RenderManager {
}
// mContext.getGlobalConfigs().getLogAdapter().log(TAG,"render moveNode pId:" + pId+" id: "+id+" moveids:"+moveIds.toString());
parentNode.move(arrayList, id);
addUpdateNodeIfNeeded(parentNode);
addUpdateNodeIfNeeded(newParent);
}
@@ -146,7 +147,7 @@ public class RenderManager {
RenderNode uiNode = mNodes.get(id);
uiNode.setDelete(true);
if (uiNode.mParent != null && mControllerManager.hasView(id)) {
if (uiNode.mParent != null) {
uiNode.mParent.addDeleteId(id, uiNode);
addUpdateNodeIfNeeded(uiNode.mParent);
} else if (TextUtils.equals(NodeProps.ROOT_NODE, uiNode.getClassName())) {