Allow plugins to specify an icon for the nav drawer
(and add icons for bookmarks)
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user