package Ġcom . shark ab oi . media hub . modules . anime . adapters Ċ Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . FragmentManager Ċ import Ġandroidx . lifecycle . Lifecycle Ċ import Ġandroidx . view pager 2 . adapter . Fragment State Adapter Ċ import Ġcom . shark ab oi . media hub . data . api . enums . An ime Status Ċ import Ġcom . shark ab oi . media hub . modules . anime . ui . An ime ListBy Status Fragment Ċ Ċ class ĠAn ime Pager Adapter ( fm : ĠFragment Manager , Ġlifecycle : ĠLifecycle ) Ġ: ĊĠĠĠ ĠFragment State Adapter ( fm , Ġlifecycle ) Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= ĠAn ime Status . values (). count () ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Fragment ( position : ĠInt ): ĠFragment Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠAn ime ListBy Status Fragment . newInstance ( An ime Status . values ()[ position ]) ĊĠĠĠ Ġ} Ċ } Ċ