package Ġcom . pi h rit . photos . common . di . presentation Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroidx . fragment . app . Fragment Activity Ċ import Ġandroidx . fragment . app . FragmentManager Ċ import Ġcom . pi h rit . photos . photos . Fetch Photos UseCase Ċ import Ġcom . pi h rit . photos . screens . common . Toast Helper Ċ import Ġcom . pi h rit . photos . screens . common . controllers . Back Press Dispatcher Ċ import Ġcom . pi h rit . photos . screens . common . fragment gr ame helper . Fragment Frame Helper Ċ import Ġcom . pi h rit . photos . screens . common . fragment gr ame helper . Fragment Frame Wrapper Ċ import Ġcom . pi h rit . photos . screens . common . screens navigator . Scre ens Navigator Ċ import Ġcom . pi h rit . photos . screens . photos . Photos Controller Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ Ċ @ Module Ċ class ĠPresentation Module ( private Ġval Ġm Activity : ĠFragment Activity ) Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget LayoutInflater (): ĠLayoutInflater Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠLayoutInflater . from ( m Activity ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun ĠgetActivity (): ĠFragment Activity Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġm Activity ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġcontext ( activity : ĠActivity ): ĠContext Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġactivity ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun ĠgetS cre ens Navigator ( fragment Frame Helper : ĠFragment Frame Helper ): ĠS cre ens Navigator Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠS cre ens Navigator ( fragment Frame Helper ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget Back Press Dispatcher ( activity : ĠFragment Activity ): ĠBack Press Dispatcher Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġactivity Ġas ĠBack Press Dispatcher ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget Fragment Frame Helper ( ĊĠĠĠĠĠĠĠ Ġactivity : ĠFragment Activity , ĊĠĠĠĠĠĠĠ Ġfragment Frame Wrapper : ĠFragment Frame Wrapper , ĊĠĠĠĠĠĠĠ Ġfragment Manager : ĠFragment Manager ĊĠĠĠ Ġ): ĠFragment Frame Helper Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠFragment Frame Helper ( activity , Ġfragment Frame Wrapper , Ġfragment Manager ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget FragmentManager ( activity : ĠFragment Activity ): ĠFragment Manager Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġactivity . support FragmentManager ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget Fragment Frame Wrapper ( activity : ĠFragment Activity ): ĠFragment Frame Wrapper Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġactivity Ġas ĠFragment Frame Wrapper ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget Photos Controller ( ĊĠĠĠĠĠĠĠ Ġfetch Photos UseCase : ĠFetch Photos UseCase , ĊĠĠĠĠĠĠĠ Ġscreens Navigator : ĠS cre ens Navigator , Ġback Press Dispatcher : ĠBack Press Dispatcher , Ġtoast Helper : ĠToast Helper ĊĠĠĠ Ġ): ĠPh otos Controller Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠPh otos Controller ( fetch Photos UseCase , Ġscreens Navigator , Ġback Press Dispatcher , Ġtoast Helper ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget Toast Helper ( activity : ĠFragment Activity ): ĠToast Helper Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠToast Helper ( activity ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ