You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2020/09/10 03:25:49 UTC

[incubator-weex] branch master updated: [iOS]fix waterfall crash error

This is an automated email from the ASF dual-hosted git repository.

moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 59db210  [iOS]fix waterfall crash error
     new 3b9ab26  Merge pull request #3266 from jianhan-he/master
59db210 is described below

commit 59db21068cdc10ded112cc336876cf57711abd5a
Author: linghe.lh <li...@alibaba-inc.com>
AuthorDate: Thu Sep 10 10:27:11 2020 +0800

    [iOS]fix waterfall crash error
---
 ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
index 5f92f29..ef63b99 100644
--- a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
+++ b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
@@ -214,7 +214,7 @@
             [itemDiffResult.inserts enumerateIndexesUsingBlock:^(NSUInteger idx, BOOL * _Nonnull stop) {
                 WXCellComponent *cell = [newSection.cellComponents wx_safeObjectAtIndex:idx];
                 if (cell.isLayoutComplete) {
-                    NSIndexPath *insertIndexPath = [NSIndexPath indexPathForItem:idx inSection:sectionUpdate.oldIndex];
+                    NSIndexPath *insertIndexPath = [NSIndexPath indexPathForItem:idx inSection:sectionUpdate.newIndex];
                     [insertIndexPaths addObject:insertIndexPath];
                 }
             }];