Skip to content

Commit cb33ada

Browse files
committed
Revert "CollectionView with grouped data crashes on iOS when the groups change - fix (#27991)"
This reverts commit 47077b1.
1 parent fa2b417 commit cb33ada

File tree

5 files changed

+1
-332
lines changed

5 files changed

+1
-332
lines changed

src/Controls/src/Core/Handlers/Items/iOS/ObservableGroupedSource.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,6 @@ void Move(NotifyCollectionChangedEventArgs args)
315315

316316
int GetGroupCount(int groupIndex)
317317
{
318-
if (groupIndex < 0 || groupIndex >= _groupSource.Count)
319-
{
320-
return 0;
321-
}
322-
323318
switch (_groupSource[groupIndex])
324319
{
325320
case IList list:
@@ -339,11 +334,6 @@ int GetGroupCount(int groupIndex)
339334

340335
object GetGroupItemAt(int groupIndex, int index)
341336
{
342-
if (groupIndex < 0 || groupIndex >= _groupSource.Count)
343-
{
344-
return -1;
345-
}
346-
347337
switch (_groupSource[groupIndex])
348338
{
349339
case IList list:

src/Controls/src/Core/Handlers/Items/iOS/ObservableItemsSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void Update(Action<UICollectionView> update, NotifyCollectionChangedEventArgs ar
314314
return;
315315

316316
var collectionView = controller.CollectionView;
317-
if (collectionView.Hidden || collectionView.Window == null)
317+
if (collectionView.Hidden)
318318
{
319319
return;
320320
}

src/Controls/tests/TestCases.HostApp/Issues/Issue27797.xaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/Controls/tests/TestCases.HostApp/Issues/Issue27797.xaml.cs

Lines changed: 0 additions & 260 deletions
This file was deleted.

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue27797.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)