package Ġcom . mobile solution works . android . app Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . res . Configuration Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 4 . app . Fragment Ċ import Ġandroid . view . View Ċ import Ġcom . mobile solution works . android . app . controller . Works Controller Manager Ċ Ċ /** Ċ Ġ* ĠFragment Ġhost Ġfor ĠWorks Controller . Ċ Ġ* Ċ Ġ* ĠCreated Ġby Ġy un arta Ġon Ġ 1 9 / 1 1 / 1 5 . Ċ Ġ*/ Ċ open Ġclass ĠWorks Fragment Ġ: ĠFragment (), ĠWork Controller Host Ġ{ ĊĊĠĠĠ Ġvar Ġloader : ĠWorks Controller Manager . Controller Manager ? Ġ= Ġnull ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠGet Ġcontroller Ġmanager Ġto Ġcreate Ġindividual Ġcontroller . ĊĠĠĠĠ Ġ* Ġ@ return Ġcontroller Ġmanager . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġoverride Ġval Ġcontroller Manager : ĠWorks Controller Manager ĊĠĠĠĠĠĠĠ Ġget () Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġloader !!. controller ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Attach ( context : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Attach ( context ) ĊĠĠĠĠĠĠĠ Ġloader Ġ= Ġloader Manager . init Loader ( 0 , Ġnull , ĠWorks Controller Manager . Controller Manager Loader Callbacks ( context . application Context )) Ġas ĠWorks Controller Manager . Controller Manager ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Configuration Changed ( new Config : ĠConfiguration ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Configuration Changed ( new Config ) ĊĠĠĠĠĠĠĠ Ġcontroller Manager . lifecycle Hook . on Configuration Changed ( new Config ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġcontroller Manager . lifecycle Hook . on Restore InstanceState ( savedInstanceState ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Save InstanceState ( out State : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġcontroller Manager . lifecycle Hook . dispatch Save InstanceState ( out State ) ĊĠĠĠĠĠĠĠ Ġsuper . on Save InstanceState ( out State ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Pause () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Pause () ĊĠĠĠĠĠĠĠ Ġcontroller Manager . lifecycle Hook . dispatch Pause () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Resume () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Resume () ĊĠĠĠĠĠĠĠ Ġcontroller Manager . lifecycle Hook . dispatch Resume () ĊĠĠĠ Ġ} Ċ } Ċ