I am using MAUI under .NET 7 and I have a launcher application set as default in Android simulator. The app crashes when it is restarted, but works fine otherwise. The application restarts after closing it, because it is set as the default launcher. I get the following exception:
System.ObjectDisposedException: 'Cannot access a disposed object.
Object name: 'Google.Android.Material.ImageView.ShapeableImageView'.'
What is the problem and how do I fix it?