public boolean performItemClick ( View view , int position , long id ) { if ( mOnItemClickListener != null ) { playSoundEffect ( SoundEffectConstants . CLICK ) ; if ( view != null ) { view . sendAccessibilityEvent ( AccessibilityEvent . TYPE_VIEW_CLICKED ) ; } mOnItemClickListener . onItemClick ( /*this*/ null , view , position , id ) ; return true ; } return false ; }
Call the OnItemClickListener if it is defined .