package Ġsan che z . san che z . ser gio . feature _ tv _ detail . ui Ċ Ċ import Ġandroid . view . MenuItem Ċ import Ġsan che z . san che z . ser gio . feature _ tv _ detail . R Ċ import Ġsan che z . san che z . ser gio . feature _ tv _ detail . databinding . Activity Feature Tv Detail Binding Ċ import Ġsan che z . san che z . ser gio . feature _ tv _ detail . di . factory . Feature Tv Detail Component Factory Ċ import Ġsan che z . san che z . ser gio . movie _ add ict s . core . ui . Support Activity Ċ Ċ class ĠFeature Tv Detail Activity Ġ: ĠSupport Activity < Activity Feature Tv Detail Binding >(), ĊĠĠĠ ĠFeature Tv Detail Activity Delegate Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġlayout Id (): ĠInt Ġ= ĠR . layout . activity _ feature _ tv _ detail ĊĊĠĠĠ Ġoverride Ġfun Ġon Attach Component () Ġ{ ĊĠĠĠĠĠĠĠ ĠFeature Tv Detail Component Factory . get Feature Tv Detail Component ( this ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Detach Component () Ġ{ ĊĠĠĠĠĠĠĠ ĠFeature Tv Detail Component Factory . remove Feature Tv Detail Component () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Options ItemSelected ( item : ĠMenuItem ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( item . itemId Ġ== Ġandroid . R . id . home ) Ġon Back Pressed () ĊĠĠĠĠĠĠĠ Ġreturn Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinitialize UI () Ġ{ ĊĠĠĠĠĠĠĠ Ġif (! intent . has Extra ( TV _ ID _ ARG _ NAME )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthrow ĠIllegalStateException (" You Ġmust Ġprovide Ġa ĠT v ĠId ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Tv Id (): ĠLong Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġintent . getLong Extra ( TV _ ID _ ARG _ NAME , Ġ- 1 ) ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠTV _ ID _ ARG _ NAME Ġ= Ġ" TV _ ID " ĊĠĠĠ Ġ} Ċ }