summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorJimmy Garrido <jimmygarrido@outlook.com>2017-07-07 08:31:22 -0700
committerkingces95 <kingces95@users.noreply.github.com>2017-07-07 11:31:22 -0400
commit009b3f3d7c0e457f6f27344088ba8e9d51c25c10 (patch)
treed0d1f62b891b718e65d5e0b241a6bd0f336c8dfe /Xamarin.Forms.Platform.Android
parent1c197ee83581587a0b5a1b7fbf23bd9633bea696 (diff)
downloadxamarin-forms-009b3f3d7c0e457f6f27344088ba8e9d51c25c10.tar.gz
xamarin-forms-009b3f3d7c0e457f6f27344088ba8e9d51c25c10.tar.bz2
xamarin-forms-009b3f3d7c0e457f6f27344088ba8e9d51c25c10.zip
Fix accent color for Samsung devices (#1026)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/Forms.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/Forms.cs b/Xamarin.Forms.Platform.Android/Forms.cs
index 8d336191..e6745638 100644
--- a/Xamarin.Forms.Platform.Android/Forms.cs
+++ b/Xamarin.Forms.Platform.Android/Forms.cs
@@ -156,7 +156,7 @@ namespace Xamarin.Forms
Color rc;
using (var value = new TypedValue())
{
- if (Context.Theme.ResolveAttribute(global::Android.Resource.Attribute.ColorAccent, value, true)) // Android 5.0+
+ if (Context.Theme.ResolveAttribute(global::Android.Resource.Attribute.ColorAccent, value, true) && Forms.IsLollipopOrNewer) // Android 5.0+
{
rc = Color.FromUint((uint)value.Data);
}