package Ġpt . ise l . vs dd ashboard application . activities . fragment . parent Ċ Ċ import Ġandroid . os . Bundle Ċ 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 . N SP ort ViewPager Adapter Ċ import Ġpt . ise l . vs dd ashboard application . activities . adapter . pager . V Port 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 Port ViewModel Ċ import Ġpt . ise l . vs dd ashboard application . view model . parent . Alarm Parent ViewModel Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠV port Parent Fragment Ġ: ĠBase Pager Fragment (), ĠI Alarm Parent Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Alarm ViewModel (): ĠAlarm Parent ViewModel Ġ{ Ġreturn Ġthis . viewModel Ġ} ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar ĠviewModel Factory : ĠViewModel Provider . Factory ĊĠĠĠ Ġlateinit Ġvar ĠviewModel Ġ: ĠV Port ViewModel ĊĊĠĠĠ Ġoverride Ġfun Ġget Title (): ĠInt Ġ= ĠR . string . port ĊĊĠĠĠ Ġprivate Ġval Ġargs Ġ: ĠV port Parent Fragment Args Ġby Ġnav Args () ĊĊĠĠĠ Ġoverride Ġfun Ġget Pager (): ĠFragment Pager Adapter Ġ= ĊĠĠĠĠĠĠĠ ĠV Port ViewPager Adapter ( this . child FragmentManager ) ĊĊĠĠĠ Ġfun Ġget V rs Id () Ġ= Ġargs . v rs Id ĊĠĠĠ Ġfun Ġget V port Id () Ġ= Ġargs . v port Id ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠviewModel Ġ= ĠViewModel Providers . of ( this , viewModel Factory )[ V Port ViewModel :: class . java ] ĊĠĠĠĠĠĠĠ ĠviewModel . init ( args . v port Id , Ġargs . v rs Id ) ĊĠĠĠ Ġ} Ċ Ċ }