mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
remove .png
from selected icon
This commit is contained in:
parent
1f0f94746b
commit
09bef28362
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue