Open dbassioneisdata opened 4 years ago
UPDATE - It works fine on new Android Units but on older ones we are getting the same
Java.Lang.ClassCastException Message=android.view.ViewGroup$LayoutParams cannot be cast to android.view.ViewGroup$MarginLayoutParams
Error
Bug Information
Version Number of Plugin: 5.0.1 Device Tested On: Andorid, IOS , Andorid Emulator, IOS Emulator Version of VS: 2019 Version 16.6.3 Version of Xamarin: 16.6.000.1062 Versions of other things you are using:
THIS was not an issue until last week
Steps to reproduce the Behavior
When calling the CrossMedia.Current.TakePhotoAsync in a loop Calling the CrossMedia.Current.TakePhotoAsync again
Expected Behavior
Loop around and open the camera up again to take a picture
Actual Behavior
Crashes with the following message
Java.Lang.ClassCastException Message=android.view.ViewGroup$LayoutParams cannot be cast to android.view.ViewGroup$MarginLayoutParams
Code snippet
private async Task CameraCall()
{
bool p_stayInLoop = true;
Or calling with no loop
private async Task CameraCall()
{
bool p_stayInLoop = true;
Screenshots