package Ġcom . example . android _ ble ed . android _ leg ends . flow steps Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . example . android _ ble ed . android _ leg ends . utilities . Legend Result Ċ import Ġcom . example . android _ ble ed . android _ leg ends . view . Leg ends Dialog Fragment Ċ import Ġkotlin . reflect . K Class Ċ Ċ class ĠDialog Op ener < D Ġ: ĠLeg ends Dialog Fragment >( val Ġdialog K lass : ĠK Class < D >) Ġ: ĠFlow Step () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġexecute (): ĠLive Data < Legend Result > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdata Ġ= ĠMutable LiveData < Legend Result >() ĊĠĠĠĠĠĠĠ Ġval Ġdialog Op ener Result Ġ= ĠDialog Op ener Result ( dialog K lass ) ĊĠĠĠĠĠĠĠ Ġdialog Op ener Result . bundle Ġ= Ġdata Bundle ĊĠĠĠĠĠĠĠ Ġdata . post Value ( dialog Op ener Result ) ĊĠĠĠĠĠĠĠ Ġreturn Ġdata ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġdata Ġclass ĠDialog Op ener Result < D Ġ: ĠLeg ends Dialog Fragment >( val Ġdialog K lass : ĠK Class < D >) Ġ: ĠLegend Result ( Status . COMPLETED ) Ċ Ċ }