package Ġorg . metab rain z . mobile . presentation . features . base Ċ Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . Fragment Activity Ċ import Ġandroidx . view pager 2 . adapter . Fragment State Adapter Ċ Ċ class ĠView Pager Adapter ( activity : ĠFragment Activity , Ġprivate Ġval Ġfragments : ĠList < Music Brain z Fragment >) ĊĠĠĠ Ġ: ĠFragment State Adapter ( activity ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= Ġfragments . size ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Fragment ( position : ĠInt ): ĠFragment Ġ= Ġfragments [ position ]. newInstance () Ċ }