package Ġio . github . mk lk j . film owy . ui Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . FragmentManager Ċ import Ġtim ber . log . Tim ber Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ class ĠFragment Lifecycle Logger Ġ@ Inject Ġconstructor () Ġ: ĠFragment Manager . Fragment Lifecycle Callbacks () Ġ{ ĊĊĠĠĠ Ġprivate Ġfun Ġcheck Saved State ( savedInstanceState : ĠBundle ?) Ġ= Ġif Ġ( savedInstanceState Ġ== Ġnull ) Ġ"( STATE ĠIS ĠNULL )" Ġelse Ġ"" ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment View Created ( fm : ĠFragment Manager , Ġf : ĠFragment , Ġv : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠVIEW ĠCRE ATED Ġ${ check Saved State ( savedInstanceState )} ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Stopped ( fm : ĠFragment Manager , Ġf : ĠFragment ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠSTOP PED ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Created ( fm : ĠFragment Manager , Ġf : ĠFragment , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠCRE ATED Ġ${ check Saved State ( savedInstanceState )} ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Res umed ( fm : ĠFragment Manager , Ġf : ĠFragment ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠRES U MED ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Attached ( fm : ĠFragment Manager , Ġf : ĠFragment , Ġcontext : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠATT ACHED ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Destroyed ( fm : ĠFragment Manager , Ġf : ĠFragment ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠDEST ROY ED ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Save InstanceState ( fm : ĠFragment Manager , Ġf : ĠFragment , Ġout State : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠS AV ED ĠINSTANCE ĠSTATE ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Started ( fm : ĠFragment Manager , Ġf : ĠFragment ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠSTART ED ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment View Destroyed ( fm : ĠFragment Manager , Ġf : ĠFragment ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠVIEW ĠDEST ROY ED ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Activity Created ( fm : ĠFragment Manager , Ġf : ĠFragment , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠACT IVITY ĠCRE ATED Ġ${ check Saved State ( savedInstanceState )} ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Paused ( fm : ĠFragment Manager , Ġf : ĠFragment ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠPA USED ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Fragment Detached ( fm : ĠFragment Manager , Ġf : ĠFragment ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d ("${ f :: class . java . simple Name } ĠDET ACHED ") ĊĠĠĠ Ġ} Ċ } Ċ