package Ġru ol an . com . base library . ui . fragment Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġorg . jetbrains . ank o . support . v 4 . toast Ċ import Ġru ol an . com . base library . common . Base Application Ċ import Ġru ol an . com . base library . injection . component . Activity Component Ċ import Ġru ol an . com . base library . injection . component . D agger Activity Component Ċ import Ġru ol an . com . base library . injection . module . Activity Module Ċ import Ġru ol an . com . base library . injection . module . Lifecycle Provider Module Ċ import Ġru ol an . com . base library . presenter . Base Presenter Ċ import Ġru ol an . com . base library . presenter . view . Base View Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġw uy in le i Ġon Ġ 2 0 1 8 / 1 / 2 1 . Ċ Ġ* Ċ Ġ* Ġ@ function Ċ Ġ*/ Ċ abstract Ġclass ĠBase M vp Fragment < T Ġ: ĠBase Presenter <* >> Ġ: ĠBase Fragment (), ĠBase View Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonError ( message : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġtoast ( message ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġhide Loading () Ġ{ ĊĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġshow Loading () Ġ{ ĊĊĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġlateinit Ġvar Ġm Activity Component : ĠActivity Component ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġm Presenter : ĠT ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater ?, Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĊĠĠĠĠĠĠĠ Ġinit Activity Component () ĊĊĠĠĠĠĠĠĠ Ġinject Component () ĊĊĠĠĠĠĠĠĠ Ġreturn Ġsuper . onCreate View ( in flater , Ġcontainer , ĠsavedInstanceState ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġabstract Ġfun Ġinject Component () ĊĊĊĠĠĠ Ġprivate Ġfun Ġinit Activity Component () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġm Activity Component Ġ= ĠD agger Activity Component . builder (). app Component (( activity . application Ġas ĠBase Application ). app Component ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. activity Module ( Activity Module ( activity )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. lifecycle Provider Module ( Lifecycle Provider Module ( this )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġ} Ċ }