public void updateBadge ( long identifier , StringHolder badge ) { IDrawerItem drawerItem = getDrawerItem ( identifier ) ; if ( drawerItem instanceof Badgeable ) { Badgeable badgeable = ( Badgeable ) drawerItem ; badgeable . withBadge ( badge ) ; updateItem ( ( IDrawerItem ) badgeable ) ; } }
update the badge for a specific drawerItem identified by its id