summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamantha Houts <samantha@teamredwall.com>2016-04-19 16:53:02 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-04-19 16:53:02 (GMT)
commitc0baf7fc3effa84ac9980b212dba7c6c2403f329 (patch)
treeb8a453d33931db557eb2bfdb5b7e966ee3ce61b4
parentecf0e47ad6cc13ede776b4900edbd97096cf9275 (diff)
downloadxamarin-forms-c0baf7fc3effa84ac9980b212dba7c6c2403f329.zip
xamarin-forms-c0baf7fc3effa84ac9980b212dba7c6c2403f329.tar.gz
xamarin-forms-c0baf7fc3effa84ac9980b212dba7c6c2403f329.tar.bz2
[A] Don't set TabbedPage BarTextColor to nothing (#113)
-rw-r--r--Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs
index 28fbf49..ade398a 100644
--- a/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs
@@ -359,14 +359,14 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
}
}
- private void UpdateBarTextColor()
+ void UpdateBarTextColor()
{
if (_disposed || _tabLayout == null)
return;
- var textColor = Element.BarTextColor.ToAndroid().ToArgb();
-
- _tabLayout.SetTabTextColors(textColor, textColor);
+ Color textColor = Element.BarTextColor;
+ if (!textColor.IsDefault)
+ _tabLayout.SetTabTextColors(textColor.ToAndroid().ToArgb(), textColor.ToAndroid().ToArgb());
}
}
} \ No newline at end of file