package Ġcom . digital apps bd . app . ep urre ader . settings Ċ Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . Fragment Activity Ċ import Ġandroidx . view pager 2 . adapter . Fragment State Adapter Ċ import Ġorg . read ium . r 2 . shared . Publication Ċ Ċ class ĠSaved Content Pager Adapter ( ĊĠ Ġactivity : ĠFragment Activity , ĊĠ Ġprivate Ġval Ġbook Id : ĠLong , ĊĠ Ġprivate Ġval Ġpublication : ĠPublic ation Ċ ) Ġ: ĠFragment State Adapter ( activity ) Ġ{ ĊĊĠ Ġprivate Ġvar Ġlist : ĠList < String > Ġ= ĠlistOf (" Highlight s ", Ġ" Book marks ") ĊĊĠ Ġoverride Ġfun Ġcreate Fragment ( position : ĠInt ): ĠFragment Ġ{ ĊĠĠĠ Ġreturn Ġif Ġ( position Ġ== Ġ 0 ) ĠHighlight Fragment . newInstance ( book Id , Ġpublication ) ĊĠĠĠ Ġelse ĠBook mark Fragment . newInstance ( book Id , Ġpublication ) ĊĠ Ġ} ĊĊĊĠ Ġfun Ġget Page Title ( position : ĠInt ): ĠCharSequence Ġ= ĊĠĠĠ Ġlist [ position ] ĊĊĊĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= Ġlist . size Ċ Ċ }