Skip to content

Commit e2fc183

Browse files
committed
fix(ListView): android sectioned data state to match ios for framework integrations
1 parent b482e8d commit e2fc183

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/core/ui/list-view/index.android.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,10 @@ function ensureListViewAdapterClass() {
11501150
ios: undefined,
11511151
};
11521152

1153+
if (this.owner.sectioned) {
1154+
(args as any).section = section;
1155+
}
1156+
11531157
this.owner.notify(args);
11541158

11551159
if (!args.view) {
@@ -1163,6 +1167,11 @@ function ensureListViewAdapterClass() {
11631167
args.view.height = <CoreTypes.LengthType>unsetValue;
11641168
}
11651169

1170+
if (this.owner.sectioned) {
1171+
(args.view as any)._listViewItemIndex = itemIndex;
1172+
(args.view as any)._listViewSectionIndex = section;
1173+
}
1174+
11661175
// Use sectioned item preparation
11671176
if (this.owner.sectioned) {
11681177
this.owner._prepareItemInSection(args.view, section, itemIndex);

0 commit comments

Comments
 (0)