[Android] "PlatformView cannot be null here" crash when switching shell tabs #22996
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
high
It doesn't work at all, crashes or has a big impact.
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
After navigation away from a page, by changing tabs, that has a container like :
public class SnackbarContainer : Layout<View>
and going back to it, the android app will crash
This is not an issue on iOS.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/andreiionita/Snackbar
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
I tested it with Android API 34
Did you find any workaround?
Wrap the page content with a grid, it will avoid the crash but it will cause other issues( for me it was a handler mapping action that was not called anymore)
Relevant log output
The text was updated successfully, but these errors were encountered: