mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 06:06:52 +08:00
fix(android): listview not update when delete invisible items
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user