Skip to content

Commit c54881a

Browse files
Adding more detailed comments
1 parent 588c206 commit c54881a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Toolkit/Toolkit.Maui/FloorFilter/FloorFilter.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ internal async void NavigateForward(ContentPage page)
150150
// Explanation: Due to a bug in .NET MAUI 9, navigating from a CollectionView selection using PushAsync avoids a crash that occurs when using PushModalAsync.
151151
// The crash is caused by the CollectionView's VirtualView not being null during navigation, leading to an unhandled exception.
152152
// This workaround uses PushAsync on Windows/Android platforms to prevent the crash. When the bug is fixed in MAUI, this conditional can be revisited.
153-
153+
// TODO: Remove this conditional when the MAUI bug is fixed.
154154
#if WINDOWS && ANDROID
155155
await Navigation.PushAsync(page);
156156
#else
@@ -171,6 +171,8 @@ internal async void CloseBrowsing()
171171
try
172172
{
173173
// Workaround for .NET MAUI issue: https://github.com/dotnet/maui/issues/29512
174+
// Use PushAsync on Windows/Android platforms to avoid the crash.
175+
// TODO: Remove this conditional when the MAUI bug is fixed.
174176
#if WINDOWS && ANDROID
175177
await Navigation.PopAsync();
176178
#else
@@ -193,6 +195,8 @@ internal async void GoBack()
193195
try
194196
{
195197
// Workaround for .NET MAUI issue: https://github.com/dotnet/maui/issues/29512
198+
// Use PushAsync on Windows/Android platforms to avoid the crash.
199+
// TODO: Remove this conditional when the MAUI bug is fixed.
196200
#if WINDOWS && ANDROID
197201
await Navigation.PopAsync();
198202
#else

0 commit comments

Comments
 (0)