1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-30 12:54:24 +01:00

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