package Ġcom . s rg . c iti box . common . di . d agger _ activity Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . s rg . c iti box . post _ detail . ui . Post Detail Activity Ċ import Ġcom . s rg . c iti box . post _ list . ui . Post List Activity Ċ import Ġcom . s rg . c iti box . common . di . d agger _ application . Application Component Ċ import Ġcom . s rg . c iti box . common . di . d agger _ application . C iti box Application Ċ import Ġjava . lang . RuntimeException Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠSeb ast i Ã¡n ĠRod r ÃŃ gue z Ġon Ġ 1 3 , January , 2 0 2 0 Ċ Ġ*/ Ċ Ċ abstract Ġclass ĠBase D agger Activity : ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġinline Ġfun Ġ< re ified ĠT > Ġget Injector ( activity : AppCompatActivity ): T { ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen ( activity :: class ){ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠPost List Activity :: class , ĠPost Detail Activity :: class Ġ-> Ġget Application Component (). new Activity Component ( Activity Module ()) Ġas ĠT ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġthrow ĠRuntimeException (" This Ġcontroller Ġis Ġnot Ġsupported Ġfor Ġinjection s Ġ" Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġactivity :: class . java . canonical Name ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Application Component (): ĠApplication Component Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ( application Ġas ĠC iti box Application ). getApplication Component () ĊĠĠĠ Ġ} Ċ }