Commit 46ee805
BUG FIX: adding count check for navigation stack before getting last item, adding check for mainpage as current page as additional failover. (#2379)
* adding count check for navigation stack before getting last-1, and adding check for mainpage as last resort
* Removing obsolete code for Application.Current.MainPage
* Use `LastOrDefault()`
---------
Co-authored-by: unknown <m@NIX.FinalLevel.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: James Crutchley <ne0rmatrix@gmail.com>
Co-authored-by: Brandon Minnick <13558917+TheCodeTraveler@users.noreply.github.com>1 parent 238f413 commit 46ee805
File tree
1 file changed
+1
-1
lines changed- src/CommunityToolkit.Maui.MediaElement/Views
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments