(iconVisibility: string)
| 579 | } |
| 580 | |
| 581 | function getIconVisibility(iconVisibility: string): boolean { |
| 582 | switch (iconVisibility) { |
| 583 | case 'always': |
| 584 | return true; |
| 585 | |
| 586 | case 'auto': |
| 587 | case 'never': |
| 588 | default: |
| 589 | return false; |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | function getSystemResourceId(systemIcon: string): number { |
| 594 | return android.content.res.Resources.getSystem().getIdentifier(systemIcon, 'drawable', 'android'); |