From 09bef283620edd7ab180be809ea4358f4cdf8830 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 30 Oct 2017 15:18:24 -0400 Subject: [PATCH] remove `.png` from selected icon --- src/Android/Controls/ExtendedTabbedPageRenderer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Android/Controls/ExtendedTabbedPageRenderer.cs b/src/Android/Controls/ExtendedTabbedPageRenderer.cs index 7c82f97a5..7d1bdc38a 100644 --- a/src/Android/Controls/ExtendedTabbedPageRenderer.cs +++ b/src/Android/Controls/ExtendedTabbedPageRenderer.cs @@ -62,7 +62,8 @@ namespace Bit.Android.Controls if(selected) { - var selectedResource = IdFromTitle(string.Format("{0}_selected", icon), ResourceManager.DrawableClass); + var selectedIcon = string.Format("{0}_selected", icon.Replace(".png", string.Empty)); + var selectedResource = IdFromTitle(selectedIcon, ResourceManager.DrawableClass); if(selectedResource != 0) { tab.SetIcon(selectedResource);