@ UiThread public int getParentAdapterPosition ( ) { int flatPosition = getAdapterPosition ( ) ; if ( mExpandableAdapter == null || flatPosition == RecyclerView . NO_POSITION ) { return RecyclerView . NO_POSITION ; } return mExpandableAdapter . getNearestParentPosition ( flatPosition ) ; }
Returns the adapter position of the Parent associated with this ChildViewHolder