package Ġcn . x wj . base library . ui . fragment Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcn . x wj . base library . common . Base Application Ċ import Ġcn . x wj . base library . di . component . Activity Component Ċ import Ġcn . x wj . base library . di . component . D agger Activity Component Ċ import Ġcn . x wj . base library . di . module . Activity Module Ċ import Ġcn . x wj . base library . di . module . Lifecycle Owner Module Ċ import Ġcn . x wj . base library . presenter . Base Presenter Ċ import Ġcn . x wj . base library . presenter . view . Base View Ċ import Ġcom . kotlin . base . widgets . Progress Loading Ċ import Ġorg . jetbrains . ank o . support . v 4 . toast Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠAuthor : Ġx w Ċ Ġ* ĠDate : Ġ 2 0 1 8 - 0 5 - 2 5 Ġ 1 5 : 1 6 : 5 4 Ċ Ġ* ĠDescription : ĠBase M vp Fragment : Ġ. Ċ Ġ*/ Ċ abstract Ġclass ĠBase M vp Fragment < T Ġ: ĠBase Presenter <* >> Ġ: ĠBase Fragment (), ĠBase View Ġ{ ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġm Presenter : ĠT ĊĊĠĠĠ Ġlateinit Ġvar Ġm Activity Component : ĠActivity Component ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġm Progress Loading : ĠProgress Loading ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġinject Activity Component () ĊĠĠĠĠĠĠĠ Ġinject Component () ĊĠĠĠĠĠĠĠ Ġm Progress Loading Ġ= ĠProgress Loading . create ( context !! ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġsuper . onCreate View ( in flater , Ġcontainer , ĠsavedInstanceState ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinject Activity Component () Ġ{ ĊĠĠĠĠĠĠĠ Ġm Activity Component Ġ= ĠD agger Activity Component . builder (). activity Module ( Activity Module ( activity !! )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. app Component (( activity !!. application Ġas ĠBase Application ). app Component ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. lifecycle Owner Module ( Lifecycle Owner Module ( this )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġshow Loading () Ġ{ ĊĠĠĠĠĠĠĠ Ġm Progress Loading . show Loading () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġhide Loading () Ġ{ ĊĠĠĠĠĠĠĠ Ġm Progress Loading . hide Loading () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġshow Error ( text : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġtoast ( text ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġabstract Ġfun Ġinject Component () Ċ Ċ }