package Ġbr . com . gov ote . android . libs . flows Ċ Ċ import Ġandroidx . lifecycle . Lifecycle Ċ import Ġandroidx . lifecycle . Lifecycle Observer Ċ import Ġandroidx . lifecycle . Lifecycle Owner Ċ import Ġandroidx . lifecycle . On Lifecycle Event Ċ Ċ abstract Ġclass ĠUi Flow < T Ġ: ĠLifecycle Owner > Ġconstructor ( private Ġvar Ġscreen : ĠT ?) Ġ: ĠLifecycle Observer Ġ{ ĊĊĠ Ġprotected Ġfun Ġget Ui Context (): ĠT Ġ= Ġscreen !! ĊĊĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ DESTROY ) ĊĠ Ġfun Ġclear Ui Context () Ġ{ ĊĠĠĠ Ġscreen Ġ= Ġnull ĊĠ Ġ} Ċ } Ċ