/* ĊĠ ĠCopyright ĠÂ© Ġ 2 0 2 1 ĠNik ol ay ĠMen zh ul in . ĊĊĠ ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); ĊĠ Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . ĊĠ ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat ĊĊĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 ĊĊĠ ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware ĊĠ Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , ĊĠ ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . ĊĠ ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand ĊĠ Ġlimitations Ġunder Ġthe ĠLicense . Ċ */ Ċ package Ġcom . github . nik ol ay men zh ul in . n af _ presentation _ layer . presentation . view . inject able Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . annotation . Call Super Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . lifecycle . Lifecycle . Event . ON _ CREATE Ċ import Ġandroidx . lifecycle . Lifecycle Observer Ċ import Ġandroidx . lifecycle . On Lifecycle Event Ċ import Ġcom . github . nik ol ay men zh ul in . n af _ presentation _ layer . presentation . view . base . Injectable View Ċ import Ġcom . github . nik ol ay men zh ul in . n af _ presentation _ layer . presentation . view . inject able . fragment _ delegate . Injectable Fragment Delegate Ċ Ċ /** Ċ Ġ* ĠThe Ġbase Ġfragment Ġwith Ġsupport Ġfor Ġdependency Ġinjection . Ċ Ġ*/ Ċ abstract Ġclass ĠInjectable Fragment Ġ: ĠFragment (), ĠInjectable View , ĠLifecycle Observer Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġdelegate Ġby Ġlazy Ġ{ ĠInjectable Fragment Delegate ( this ) Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Attach ( context : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Attach ( context ) ĊĠĠĠĠĠĠĠ Ġdelegate . on Attach () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Destroy () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Destroy () ĊĠĠĠĠĠĠĠ Ġdelegate . on Destroy () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠThe Ġcallback Ġthat Ġcalled Ġafter Ġthe ĠonCreate Ġcall Ġof Ġthe Ġparent Ġactivity Ġof Ġthe Ġfragment . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ Call Super ĊĠĠĠ Ġ@ On Lifecycle Event ( ON _ CREATE ) ĊĠĠĠ Ġprotected Ġopen Ġfun Ġon Activity Create () Ġ{ ĊĠĠĠĠĠĠĠ Ġdelegate . on Activity Create () ĊĠĠĠ Ġ} Ċ }