package Ġcom . rest ing robot . tweet scanner pro . ui . adapter Ċ Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . paging . Load State Ċ import Ġandroidx . paging . Load State Adapter Ċ import Ġcom . rest ing robot . tweet scanner pro . ui . tweet search . Network State ViewHolder ĊĊ Ċ /** Ċ Ġ* Ċ Ġ* ĠAdapter Ġfor Ġdisplaying Ġload Ġstates Ċ Ġ* Ċ Ġ* ĠCreated Ġby ĠJon ĠL ange , Ġ 5 / 1 1 / 2 1 Ċ Ġ*/ Ċ class ĠT weets Load State Adapter ( private Ġval Ġadapter : ĠTweet Adapter ) Ġ: Ċ ĉ Load State Adapter < Network State ViewHolder >() Ġ{ ĊĊ ĉ override Ġfun Ġon Bind ViewHolder ( holder : ĠNetwork State ViewHolder , Ġload State : ĠLoad State ) Ġ{ Ċĉ ĉ holder . bind To ( load State ) Ċ ĉ } ĊĊ ĉ override Ġfun ĠonCreate ViewHolder ( Ċĉ ĉ parent : ĠViewGroup , Ċĉ ĉ load State : ĠLoad State Ċ ĉ ): ĠNetwork State ViewHolder Ġ{ Ċĉ ĉ return ĠNetwork State ViewHolder ( parent ) Ġ{ Ġadapter . retry () Ġ} Ċ ĉ } Ċ } Ċ