Merge pull request #2557 from willsb/droid-native-color
Rename Android NativeColor method for consistency
This commit is contained in:
Коммит
96e7185823
|
@ -15,10 +15,10 @@ namespace MvvmCross.Plugins.Color.Droid
|
|||
{
|
||||
public object ToNative(MvxColor mvxColor)
|
||||
{
|
||||
return ToAndroidColor(mvxColor);
|
||||
return ToNativeColor(mvxColor);
|
||||
}
|
||||
|
||||
public Android.Graphics.Color ToAndroidColor(MvxColor mvxColor)
|
||||
public Android.Graphics.Color ToNativeColor(MvxColor mvxColor)
|
||||
{
|
||||
return new Android.Graphics.Color(mvxColor.R, mvxColor.G, mvxColor.B, mvxColor.A);
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@ namespace MvvmCross.Plugins.Color.Droid
|
|||
{
|
||||
private static readonly MvxAndroidColor _mvxNativeColor = new MvxAndroidColor();
|
||||
|
||||
public static Android.Graphics.Color ToAndroidColor(this MvxColor color)
|
||||
public static Android.Graphics.Color ToNativeColor(this MvxColor color)
|
||||
{
|
||||
return _mvxNativeColor.ToAndroidColor(color);
|
||||
return _mvxNativeColor.ToNativeColor(color);
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче