Allow plugins to specify an icon for the nav drawer

(and add icons for bookmarks)
This commit is contained in:
fkloft 2013-12-03 00:06:15 +01:00
parent 8a10848e15
commit cb603ea7be
5 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -169,8 +169,8 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
}
public void addPane(String name, String label, String icon) {
// TODO handle icon
mNavigationAdapter.add(new Pane(name, label, 0));
int resId = mIitc.getResources().getIdentifier(icon, "drawable", mIitc.getPackageName());
mNavigationAdapter.add(new Pane(name, label, resId));
}
public void closeDrawers() {