package Ġio . github . fe elf re el inux . wy kop mob il ny . ui . modules . profile . links . related Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġio . github . fe elf re el inux . wy kop mob il ny . R Ċ import Ġio . github . fe elf re el inux . wy kop mob il ny . base . Base Fragment Ċ import Ġio . github . fe elf re el inux . wy kop mob il ny . models . dataclass . Related Ċ import Ġio . github . fe elf re el inux . wy kop mob il ny . ui . adapters . Profile Related Adapter Ċ import Ġio . github . fe elf re el inux . wy kop mob il ny . ui . modules . profile . Profile Activity Ċ import Ġio . github . fe elf re el inux . wy kop mob il ny . utils . prepare Ċ import Ġkotlinx . android . synt hetic . main . entries _ fragment .* Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠProfile Related Fragment Ġ: ĠBase Fragment (), ĠProfile Related View Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġnew Instance () Ġ= ĠProfile Related Fragment () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġusername Ġby Ġlazy Ġ{ Ġ( activity Ġas ĠProfile Activity ). username Ġ} ĊĊĠĠĠ Ġ@ Inject Ġlateinit Ġvar Ġfeed Adapter : ĠProfile Related Adapter ĊĠĠĠ Ġ@ Inject Ġlateinit Ġvar Ġpresenter : ĠProfile Related Presenter ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ= ĊĠĠĠĠĠĠĠ Ġinflater . inflate ( R . layout . feed _ fragment , Ġcontainer , Ġfalse ) ĊĊĠĠĠ Ġoverride Ġfun Ġon Activity Created ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Activity Created ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġpresenter . subscribe ( this ) ĊĠĠĠĠĠĠĠ Ġpresenter . username Ġ= Ġusername ĊĠĠĠĠĠĠĠ Ġre cyclerView . prepare () ĊĠĠĠĠĠĠĠ Ġfeed Adapter . load New Data Listener Ġ= Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpresenter . load Data ( false ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġre cyclerView . adapter Ġ= Ġfeed Adapter ĊĠĠĠĠĠĠĠ Ġpresenter . load Data ( true ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġadd DataTo Adapter ( entry List : ĠList < Related >, Ġshould Clear Adapter : ĠBoolean ) Ġ= ĊĠĠĠĠĠĠĠ Ġfeed Adapter . addData ( entry List , Ġshould Clear Adapter ) ĊĊĠĠĠ Ġoverride Ġfun Ġdisable Loading () Ġ= Ġfeed Adapter . disable Loading () Ċ }