Skip to content

Commit ab49f46

Browse files
Fix condition (#647)
* Remove missing AOT compilation from project configuration * Fixing incorrect condition
1 parent e0df83b commit ab49f46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ internal async void NavigateForward(ContentPage page)
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.
153153
// TODO: Remove this conditional when the MAUI bug is fixed.
154-
#if WINDOWS && ANDROID
154+
#if WINDOWS || ANDROID
155155
await Navigation.PushAsync(page);
156156
#else
157157
await Navigation.PushModalAsync(page);
@@ -173,7 +173,7 @@ internal async void CloseBrowsing()
173173
// Workaround for .NET MAUI issue: https://github.com/dotnet/maui/issues/29512
174174
// Use PushAsync on Windows/Android platforms to avoid the crash.
175175
// TODO: Remove this conditional when the MAUI bug is fixed.
176-
#if WINDOWS && ANDROID
176+
#if WINDOWS || ANDROID
177177
await Navigation.PopAsync();
178178
#else
179179
await Navigation.PopModalAsync();
@@ -197,7 +197,7 @@ internal async void GoBack()
197197
// Workaround for .NET MAUI issue: https://github.com/dotnet/maui/issues/29512
198198
// Use PushAsync on Windows/Android platforms to avoid the crash.
199199
// TODO: Remove this conditional when the MAUI bug is fixed.
200-
#if WINDOWS && ANDROID
200+
#if WINDOWS || ANDROID
201201
await Navigation.PopAsync();
202202
#else
203203
await Navigation.PopModalAsync();

0 commit comments

Comments
 (0)