package Ġde . ch rist ine co enen . code . z app . app . medi at he k . ui . detail . player Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroidx . navigation . nav Args Ċ import Ġde . ch rist ine co enen . code . z app . app . player . Abstract Player Activity Ċ import Ġde . ch rist ine co enen . code . z app . app . player . Video Info Ċ import Ġde . ch rist ine co enen . code . z app . app . player . Video Info . Companion . from Show Ċ import Ġde . ch rist ine co enen . code . z app . models . shows . Pers isted Med iat he k Show Ċ import Ġde . ch rist ine co enen . code . z app . models . shows . Quality Ċ import Ġde . ch rist ine co enen . code . z app . repositories . Med iat he k Repository Ċ import Ġde . ch rist ine co enen . code . z app . utils . system . Intent Helper . open Url Ċ import Ġkotlinx . coroutines . flow . first Ċ import Ġorg . k oin . android . ext . android . inject Ċ Ċ class ĠMed iat he k Player Activity Ġ: ĠAbstract Player Activity () Ġ{ ĊĊ ĉ private Ġval Ġargs : ĠMed iat he k Player Activity Args Ġby Ġnav Args () Ċ ĉ private Ġval Ġmedi at he k Repository : ĠMed iat he k Repository Ġby Ġinject () ĊĊ ĉ private Ġvar Ġpersisted Show : ĠPers isted Med iat he k Show ? Ġ= Ġnull ĊĊĊ ĉ private Ġfun Ġon Show Loaded ( pers isted Med iat he k Show : ĠPers isted Med iat he k Show ) Ġ{ Ċĉ ĉ pers isted Show Ġ= Ġpersisted Med iat he k Show ĊĊĉ ĉ if Ġ( support ActionBar Ġ!= Ġnull ) Ġ{ Ċĉĉ ĉ title Ġ= Ġpersisted Med iat he k Show . medi at he k Show . topic Ċĉĉ ĉ support ActionBar !!. subtitle Ġ= Ġpersisted Med iat he k Show . medi at he k Show . title Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ override Ġfun Ġon Share MenuItem Clicked () Ġ{ Ċĉ ĉ open Url ( this , Ġpersisted Show !!. medi at he k Show . get Video Url ( Quality . Medium )) Ċ ĉ } ĊĊ ĉ override Ġsuspend Ġfun Ġget Video Info From Intent ( intent : ĠIntent ): ĠVideo Info Ġ{ Ċĉ ĉ val Ġpersisted Med iat he k Show Ġ= Ġmedi at he k Repository Ċĉĉ ĉ . get Pers isted Show ( args . pers isted Show Id ) Ċĉĉ ĉ . first () ĊĊĉ ĉ on Show Loaded ( pers isted Med iat he k Show ) ĊĊĉ ĉ return Ġfrom Show ( pers isted Med iat he k Show ) Ċ ĉ } Ċ } Ċ