xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.87k forks source link

[Bug] Grouped CollectionView breaks on iPad Air when minimizing and reopening app #15728

Open kobbok opened 1 year ago

kobbok commented 1 year ago

Description

When the application is minimized (not completely closed!) and then reopened on an iPad Air, grouped CollectionViews that contain Group items with no children stop handling all interactions (buttons, sliders, switches,... inside it stop working, as well as any gesture recognizers). The problem doesn't seem to occur on iPhone 14 Pro Max 16.2 simulator.

Steps to Reproduce

  1. Open application
  2. Observe that clicking on a group expands it
  3. Unexpand all groups by clicking on them (no green items should be visible)
  4. Minimize the application by swiping up from the bottom
  5. Wait a second or so
  6. Reopen the application
  7. Clicking on a group will now no longer expand it

Expected Behavior

The CollectionView should be unaffected by the app minimizing and reopening. The groups should expand as expected after reopening the application.

Actual Behavior

After minimizing and reopening the application, all interactions with the CollectionView are ignored. The groups don't expand anymore when clicked.

Basic Information

Environment

Show/Hide Visual Studio info ``` Visual Studio Community 2022 for Mac Version 17.5.4 (build 8) Installation UUID: a47ec951-2400-4e85-807e-0a9a59f71af2 Runtime .NET 7.0.1 (64-bit) Architecture: Arm64 Microsoft.macOS.Sdk 12.3.2372; git-rev-head:754abbf6a3563f6267e5717ae832b4ac25b1f2fb; git-branch:release/7.0.1xx-xcode13.3 Roslyn (Language Service) 4.5.0-3.23056.2+97881342e427ff5cdcba8f12b12ff8e6f3564431 NuGet Version: 6.4.0.117 .NET SDK (Arm64) SDK: /usr/local/share/dotnet/sdk/7.0.203/Sdks SDK Versions: 7.0.203 7.0.202 7.0.201 7.0.200 7.0.103 7.0.102 7.0.101 7.0.100 6.0.408 6.0.407 6.0.406 6.0.405 6.0.404 6.0.403 MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks .NET Runtime (Arm64) Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 7.0.5 7.0.4 7.0.3 7.0.2 7.0.1 7.0.0 6.0.16 6.0.15 6.0.14 6.0.13 6.0.12 6.0.11 Xamarin.Profiler Version: 1.8.0.49 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler Updater Version: 11 Apple Developer Tools Xcode: 14.2 21534 Build: 14C18 Xamarin.Mac Not Installed Xamarin.iOS Version: 16.2.0.5 Visual Studio Community Hash: 7738c90c9 Branch: xcode14.2 Build date: 2023-01-25 15:56:15-0500 Xamarin Designer Version: 17.5.3.47 Hash: e8b5d371c3 Branch: remotes/origin/d17-5 Build date: 2023-04-05 15:58:40 UTC Xamarin.Android Version: 13.2.0.0 (Visual Studio Community) Commit: xamarin-android/d17-5/797e2e1 Android SDK: /Users/martin/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 11.0 (API level 30) 13.0 (API level 33) SDK Command-line Tools Version: 7.0 SDK Platform Tools Version: 33.0.2 SDK Build Tools Version: 32.0.0 Build Information: Mono: 6dd9def Java.Interop: xamarin/java.interop/main@149d70fe SQLite: xamarin/sqlite/3.40.0@fdc1e34 Xamarin.Android Tools: xamarin/xamarin-android-tools/main@9f02d77 Microsoft Build of OpenJDK Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk 11.0.16.1 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL Eclipse Temurin JDK Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk 1.8.0.302 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL Android SDK Manager Version: 17.5.0.33 Hash: f0c0c52 Branch: remotes/origin/d17-5~2 Build date: 2023-04-05 15:58:45 UTC Android Device Manager Version: 0.0.0.1245 Hash: 7f8a990 Branch: 7f8a990 Build date: 2023-04-05 15:58:45 UTC Build Information Release ID: 1705040008 Git revision: 9a2f0e1a7e2107e6b1174c241a1ca232cde57c49 Build date: 2023-04-05 15:56:57+00 Build branch: release-17.5 Build lane: release-17.5 Operating System Mac OS X 12.5.0 Darwin 21.6.0 Darwin Kernel Version 21.6.0 Sat Jun 18 17:07:28 PDT 2022 root:xnu-8020.140.41~1/RELEASE_ARM64_T8110 arm64 ```

Reproduction Link

CollectionViewGroupBugDemo.zip

Workaround

(partial workaround) Adding a new item to the CollectionView seems to make the CollectionView work again.