package Ġcom . spring er . pat ry k . decision aid . view . base . view pager Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . FragmentManager Ċ import Ġandroidx . fragment . app . Fragment Pager Adapter Ċ import Ġcom . spring er . pat ry k . decision aid . view . base . Base Fragment Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠPat ry k ĠSpr inger Ġon Ġ 2 8 . 0 4 . 2 0 1 9 . Ċ Ġ*/ Ċ class ĠView Pager Adapter ( Ċ ĉ fragment Manager : ĠFragment Manager ?, Ċ ĉ private Ġval Ġm Pages : ĠList < Base Fragment >, Ċ ĉ private Ġval ĠmContext : ĠContext ? Ċ ) Ġ: ĠFragment Pager Adapter ( fragment Manager ) Ġ{ ĊĊĊ ĉ override Ġfun ĠgetItem ( position : ĠInt ): ĠFragment Ġ{ Ċĉ ĉ return Ġm Pages [ position ] Ċ ĉ } ĊĊ ĉ override Ġfun Ġget Count (): ĠInt Ġ= Ġm Pages . size Ċ } Ċ