private void onProfileImageClick ( View v , boolean current ) { IProfile profile = ( IProfile ) v . getTag ( R . id . material_drawer_profile_header ) ; boolean consumed = false ; if ( mOnAccountHeaderProfileImageListener != null ) { consumed = mOnAccountHeaderProfileImageListener . onProfileImageClick ( v , profile , current ) ; } //if the event was already consumed by the click don't continue. note that this will also stop the profile change event if ( ! consumed ) { onProfileClick ( v , current ) ; } }
calls the mOnAccountHEaderProfileImageListener and continues with the actions afterwards