package Ġcom . ol uc asm oro . movie app . feature _ watch list . presentation Ċ Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . navigation . Nav Controller Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . ol uc asm oro . movie app . feature _ watch list . data . model . Movie Ċ Ċ class ĠWatch ListAdapter ( ĊĠĠĠ Ġprivate Ġval Ġlist Movie : ĠList < Movie >, ĊĠĠĠ Ġprivate Ġval Ġfind Nav Controller : ĠNav Controller Ċ ) Ġ: ĠRecyclerView . Adapter < Watch ListView Holder >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠWatch ListView Holder Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠWatch ListView Holder . inflate ( parent ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠWatch ListView Holder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . bind ( list Movie [ position ], Ġfind Nav Controller ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġlist Movie . size ĊĠĠĠ Ġ} Ċ }