public DrawerProfile findProfileById ( long id ) { for ( DrawerProfile profile : mProfileAdapter . getItems ( ) ) { if ( profile . getId ( ) == id ) { return profile ; } } return null ; }
Gets a profile from the drawer view