public void onProfileClick ( ) { //crossfade if we are cross faded if ( mCrossFader != null ) { if ( mCrossFader . isCrossfaded ( ) ) { mCrossFader . crossfade ( ) ; } } //update the current profile if ( mAccountHeader != null ) { IProfile profile = mAccountHeader . getActiveProfile ( ) ; if ( profile instanceof IDrawerItem ) { mItemAdapter . set ( 0 , generateMiniDrawerItem ( ( IDrawerItem ) profile ) ) ; } } }
call this method to trigger the onProfileClick on the MiniDrawer