package Ġa poi . m vi app . fre es ound . view Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġa poi . m vi app . common . List Event Ċ import Ġa poi . m vi app . common . List State Ċ import Ġa poi . m vi app . fre es ound . arch . view . Flow Ċ import Ġa poi . m vi app . fre es ound . arch . view . M vi Base Fragment Ċ import Ġa poi . m vi app . fre es ound . arch . view model . ViewModel Ċ import Ġa poi . m vi app . extensions . viewModel Provider Ċ import Ġa poi . m vi app . fre es ound . domain . List ViewModel Ċ import Ġa poi . m vi app . network . Api Ċ import Ġa poi . m vi app . network . Photo Service Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠList Fragment Ġ: ĠM vi Base Fragment < List State , ĠList Event , ĠViewModel < List Event , ĠList State >>() Ġ{ ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġservice : ĠPhoto Service ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġview : ĠListView ĊĊĠĠĠ Ġoverride Ġval ĠviewModel : ĠViewModel < List Event , ĠList State > Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . viewModel Provider Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠList ViewModel ( require Context (), Ġservice ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinject () Ġ{ ĊĠĠĠĠĠĠĠ Ġget Component (). inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠListView ( in flater , Ġcontainer ). also Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġview Ġ= Ġit ĊĠĠĠĠĠĠĠ Ġ}. view ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Activity Created ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Activity Created ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġ// ĠFlow Ġcan Ġbe Ġcreated Ġafter Ġinjection s . ĊĠĠĠĠĠĠĠ Ġflow Ġ= ĠFlow ( view , ĠviewModel , Ġthis ) ĊĠĠĠ Ġ} Ċ } Ċ