remove .png from selected icon

This commit is contained in:
Kyle Spearrin 2017-10-30 15:18:24 -04:00
parent 1f0f94746b
commit 09bef28362

View file

@ -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);