We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca8718 commit 5d84e70Copy full SHA for 5d84e70
src/DIPS.Xamarin.UI/Controls/Toast/ToastCore.cs
@@ -148,9 +148,14 @@ private static ContentPage GetCurrentContentPage()
148
149
if (Application.Current.MainPage is Shell shellPage)
150
{
151
- if (shellPage.Parent is ContentPage shellParent)
+ if (shellPage.CurrentPage.Navigation.ModalStack.LastOrDefault() is ContentPage shellContentPage)
152
153
- return shellParent;
+ return shellContentPage;
154
+ }
155
+
156
+ if (shellPage.CurrentPage is ContentPage shellCurrentContentPage)
157
+ {
158
+ return shellCurrentContentPage;
159
}
160
161
0 commit comments