Allow plugins to add panes to mobile nav drawer

This commit is contained in:
fkloft
2013-12-02 23:18:55 +01:00
parent 40d25ad8ef
commit ad6a447bde
4 changed files with 22 additions and 4 deletions

View File

@ -168,6 +168,11 @@ 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));
}
public void closeDrawers() {
mDrawerLayout.closeDrawers();
}