package Ġcom . jame skb ride . code m ash comp anion . speak ers . detail Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . FragmentManager Ċ import Ġandroidx . fragment . app . Fragment State Pager Adapter Ċ import Ġcom . jame skb ride . code m ash comp anion . data . model . Full Speaker Ċ import Ġcom . jame skb ride . code m ash comp anion . speak ers . detail . Speaker Detail Fragment . Companion . SPE AK ER _ KEY Ċ Ċ class ĠS peaker Pager Adapter Ġconstructor ( fm : Ġandroidx . fragment . app . FragmentManager , Ġval Ġspeaker Pager Adapter Impl : Speaker Pager Adapter Impl Ġ= ĠS peaker Pager Adapter Impl ()) Ġ: Ġandroidx . fragment . app . Fragment State Pager Adapter ( fm ) Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġspeaker Pager Adapter Impl . speaker Pager Adapter Ġ= Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem ( position : ĠInt ): Ġandroidx . fragment . app . Fragment Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġspeaker Pager Adapter Impl . getItem ( position ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Count (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġspeaker Pager Adapter Impl . getCount () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġupdate S peak ers ( speak ers : ĠArray < Full Speaker >) Ġ{ ĊĠĠĠĠĠĠĠ Ġspeaker Pager Adapter Impl . update S peak ers ( speak ers ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠS peaker Pager Adapter Impl Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġspeaker Pager Adapter : Speaker Pager Adapter ĊĠĠĠ Ġvar Ġspeak ers : Array < Full Speaker > Ġ= ĠarrayOf () ĊĊĠĠĠ Ġfun ĠgetItem ( position : ĠInt ): Ġandroidx . fragment . app . Fragment Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġspeaker Detail Fragment Ġ= ĠS peaker Detail Fragment () ĊĠĠĠĠĠĠĠ Ġval Ġbundle Ġ= ĠBundle () ĊĠĠĠĠĠĠĠ Ġbundle . put Serializable ( SPE AK ER _ KEY , Ġspeak ers [ position ]) ĊĠĠĠĠĠĠĠ Ġspeaker Detail Fragment . arguments Ġ= Ġbundle ĊĊĠĠĠĠĠĠĠ Ġreturn Ġspeaker Detail Fragment ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Count (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġspeak ers . size ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġupdate S peak ers ( speak ers : ĠArray < Full Speaker >) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . speak ers Ġ= Ġspeak ers ĊĠĠĠĠĠĠĠ Ġspeaker Pager Adapter . notify DataSet Changed () ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠS peaker Pager Adapter Factory Ġ{ ĊĠĠĠ Ġfun Ġmake ( fragment Manager : Ġandroidx . fragment . app . FragmentManager ): ĠS peaker Pager Adapter Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠS peaker Pager Adapter ( fragment Manager ) ĊĠĠĠ Ġ} Ċ }