The property Argb is changed to a method GetArgb() because this
method can throw an exception when getting the value if the Color
is default (before setting any values).
Change-Id: I8860ad0e3a4b4ec2f3e73d0bd76ce893891ea6e9
- ret = Interop.Notification.SetLed(_handle, LedOption.On, _ledColor.Argb);
+ ret = Interop.Notification.SetLed(_handle, LedOption.On, _ledColor.GetArgb());
if(ret != (int)NotificationError.None)
{
throw NotificationErrorFactory.GetException((NotificationError)ret, "unable to set led enabled");
if(ret != (int)NotificationError.None)
{
throw NotificationErrorFactory.GetException((NotificationError)ret, "unable to set led enabled");
if(enabled >= LedOption.On)
{
if(enabled >= LedOption.On)
{
- ret = Interop.Notification.SetLed(_handle, LedOption.On, value.Argb);
+ ret = Interop.Notification.SetLed(_handle, LedOption.On, value.GetArgb());
if(ret != (int)NotificationError.None)
{
throw NotificationErrorFactory.GetException((NotificationError)ret, "unable to set led color");
if(ret != (int)NotificationError.None)
{
throw NotificationErrorFactory.GetException((NotificationError)ret, "unable to set led color");