/* Ċ Ġ* ĠCopyright Ġ( c ) ĠFrancisco ĠBar ro so Ċ Ġ* Ċ Ġ* Ġ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 . fb . split screen launcher . util . rx Ċ Ċ import Ġandroidx . lifecycle . Lifecycle Ċ import Ġandroidx . lifecycle . Lifecycle Owner Ċ import Ġcom . uber . aut od is pose . Auto Dispose Ċ import Ġcom . uber . aut od is pose . Observable Subscribe Proxy Ċ import Ġcom . uber . aut od is pose . android . lifecycle . Android Lifecycle Scope Provider Ċ import Ġio . reactivex . Observable Ċ import Ġio . reactivex . dis pos ables . Composite Disposable Ċ import Ġio . reactivex . dis pos ables . Disposable ĊĊĊ Ċ fun ĠDis posable . with ( composite Disposable : ĠComposite Disposable ) Ġ{ ĊĠĠĠ Ġcomposite Disposable . addAll ( this ) Ċ } ĊĊ Ċ fun Ġ< T : ĠAny > ĠObservable < T >. with Auto Dispose ( lifecycle Owner : ĠLifecycle Owner , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġuntil Event : ĠLifecycle . Event ): ĠObservable Subscribe Proxy < T > Ġ{ ĊĠĠĠ Ġreturn Ġ` as `( Auto Dispose . auto Disposable ( Android Lifecycle Scope Provider . from ( lifecycle Owner , Ġuntil Event ))) Ċ } ĊĊ Ċ fun Ġ< T : ĠAny > ĠObservable < T >. with Auto Dispose ( lifecycle Owner : ĠLifecycle Owner ): ĠObservable Subscribe Proxy < T > Ġ{ ĊĠĠĠ Ġreturn Ġ` as `( Auto Dispose . auto Disposable ( Android Lifecycle Scope Provider . from ( lifecycle Owner ))) Ċ }