package Ġpt . ise l . vs dd ashboard application . activities . fragment . parent Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . annotation . String Res Ċ import Ġandroidx . fragment . app . Fragment Pager Adapter Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġandroidx . lifecycle . ViewModel Providers Ċ import Ġandroidx . navigation . fragment . nav Args Ċ import Ġpt . ise l . vs dd ashboard application . R Ċ import Ġpt . ise l . vs dd ashboard application . activities . adapter . pager . V rs ViewPager Adapter Ċ import Ġpt . ise l . vs dd ashboard application . activities . adapter . pager . V sc ViewPager Adapter Ċ import Ġpt . ise l . vs dd ashboard application . activities . fragment . base . Base Pager Fragment Ċ import Ġpt . ise l . vs dd ashboard application . activities . fragment . base . I Alarm Parent Ċ import Ġpt . ise l . vs dd ashboard application . view model . V rs ViewModel Ċ import Ġpt . ise l . vs dd ashboard application . view model . V sc ViewModel Ċ import Ġpt . ise l . vs dd ashboard application . view model . parent . Alarm Parent ViewModel Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠV SC ĠParent Ġfragment , Ġcontains Ġa Ġpager Ġwith Ġthe Ġinformation Ġon Ċ Ġ**** ĠV RS s Ġ- Ġlist Ġof Ġv rss Ċ Ġ**** ĠAl arms Ġ- Ġthe Ġal arms Ġon Ġthe ĠV SC Ċ Ġ*/ Ċ class ĠV rs Parent Fragment Ġ: ĠBase Pager Fragment (), ĠI Alarm Parent Ġ{ ĊĊĠĠĠ Ġ@ String Res ĊĠĠĠ Ġoverride Ġfun Ġget Title (): ĠInt Ġ= ĠR . string . v rs ĊĠĠĠ Ġprivate Ġval Ġargs Ġ: Ġ ĠV rs Parent Fragment Args Ġby Ġnav Args () ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar ĠviewModel Factory : ĠViewModel Provider . Factory ĊĠĠĠ Ġlateinit Ġvar ĠviewModel Ġ: ĠV rs ViewModel ĊĊĠĠĠ Ġoverride Ġfun Ġget Pager (): ĠFragment Pager Adapter Ġ= ĠV rs ViewPager Adapter ( this . child FragmentManager ) ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠviewModel Ġ= ĠViewModel Providers . of ( this , ĠviewModel Factory )[ V rs ViewModel :: class . java ] ĊĠĠĠĠĠĠĠ ĠviewModel . init ( args . v rs Id , Ġargs . v sc Id ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Alarm ViewModel (): ĠAlarm Parent ViewModel Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠviewModel ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget V rs Id () Ġ= Ġargs . v rs Id Ċ } Ċ