-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Color.Defult.MultiplyAlpha(0.30).ToAndroid() is crashing the app #14173
Comments
Hi, @luismts - thanks for submitting this issue. I'm confirming that I'm able to repro it The app crashes with this exception
|
On second thought, after chatting with @mattleibow - something to keep in mind here is that |
One example of this is that a Button has a "Default" color for text, background, border and everything else. There is also a |
So, the expected behavior is correct? And the implementation is what we need to care about it? I'm reporting this because XF-Material-Library and its latest version are experimenting some issues with this code. I also report the issue in their repo; you can see it here. |
Yes I believe this is expected. In MAUI we are looking at nullable Color so that the 'default' is instead null and not a 'placeholder' |
Ok, I'm closing this issue. Thanks @Redth |
Description
Color.Defult.MultiplyAlpha(0.30).ToAndroid()
is crashing the app.Steps to Reproduce
OnCreate(Bundle savedInstanceState)
method.Expected Behavior
Add a default color modifying the alpha.
Actual Behavior
The app is crashing.
Basic Information
Build Logs
Default color is:
R=-1, G=-1, B=-1, A=-1, Hue=-1, Saturation=-1, Luminosity=-1
The text was updated successfully, but these errors were encountered: