package Ġde . r ki . cor on aw arn app . ui . submission . result ready Ċ Ċ import Ġandroidx . lifecycle . as LiveData Ċ import Ġcom . squareup . inject . ass isted . Ass isted Inject Ċ import Ġde . r ki . cor on aw arn app . submission . auto . Auto Submission Ċ import Ġde . r ki . cor on aw arn app . ui . submission . view model . Submission Navigation Events Ċ import Ġde . r ki . cor on aw arn app . util . coroutine . Dispatcher Provider Ċ import Ġde . r ki . cor on aw arn app . util . ui . Single Live Event Ċ import Ġde . r ki . cor on aw arn app . util . view model . C WA ViewModel Ċ import Ġde . r ki . cor on aw arn app . util . view model . Simple C WA ViewModel Factory Ċ import Ġtim ber . log . Tim ber Ċ Ċ class ĠSubmission Result Ready ViewModel Ġ@ Ass isted Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġauto Submission : ĠAuto Submission , ĊĠĠĠ Ġdispatcher Provider : ĠDispatcher Provider Ċ ) Ġ: ĠC WA ViewModel ( dispatcher Provider Ġ= Ġdispatcher Provider ) Ġ{ ĊĊĠĠĠ Ġval Ġshow Upload Dialog Ġ= Ġauto Submission . is Submission Running ĊĠĠĠĠĠĠĠ Ġ. as LiveData ( context Ġ= Ġdispatcher Provider . Default ) ĊĠĠĠ Ġval Ġroute To Screen : ĠSingle Live Event < Submission Navigation Events > Ġ= ĠSingle Live Event () ĊĊĠĠĠ Ġfun Ġon Continue With Sy mptom Recording Pressed () Ġ{ ĊĠĠĠĠĠĠĠ Ġroute To Screen . post Value ( Submission Navigation Events . Navigate To Sy mptom Introduction ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġon Skip Sy mptoms Confirmed () Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d (" Sy mptom Ġsubmission Ġwas Ġskipped .") ĊĠĠĠĠĠĠĠ Ġlaunch Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġauto Submission . run Submission Now () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġcatch Ġ( e : ĠException ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTim ber . e ( e , Ġ" green light Submission () Ġfailed .") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġfinally Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġroute To Screen . post Value ( Submission Navigation Events . Navigate To MainActivity ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġon New User Activity () Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . d (" on New User Activity () ") ĊĠĠĠĠĠĠĠ Ġauto Submission . update Last Submission User Activity () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Ass isted Inject . Factory ĊĠĠĠ Ġinterface ĠFactory Ġ: ĠSimple C WA ViewModel Factory < Submission Result Ready ViewModel > Ċ } Ċ