package Ġcom . m ichael po hl . lo opy player 2 . ui . file browser . adapter Ċ Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . m ichael po hl . deleg ation adapter . Adapter Item Delegate Ċ import Ġcom . m ichael po hl . deleg ation adapter . inflate Layout Ċ import Ġcom . m ichael po hl . lo opy player 2 . R Ċ import Ġcom . m ichael po hl . shared . File Model Ċ Ċ class ĠAudio Item Delegate ( val Ġreceiver : Ġ( File Model . Audio File ) Ġ-> ĠUnit ) Ġ: ĊĠĠĠ ĠAdapter Item Delegate < File Model . Audio File , ĠAudio Item Holder >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġcreate ViewHolder ( parent : ĠViewGroup ): ĠAudio Item Holder Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġholder Ġ= ĠAudio Item Holder ( inflate Layout ( R . layout . item _ browser , Ġparent )) ĊĠĠĠĠĠĠĠ Ġholder . on CheckedChanged Receiver Ġ= Ġthis . receiver ĊĠĠĠĠĠĠĠ Ġreturn Ġholder ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġis For ItemType ( item : ĠAny ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem Ġis ĠFile Model . Audio File ĊĠĠĠ Ġ} Ċ } Ċ