package Ġcom . d sm . d ms . presentation . ui . fragment . sign . register . account . complete Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . activity . add Callback Ċ import Ġandroidx . navigation . Navigation Ċ import Ġcom . d sm . d ms . presentation . R Ċ import Ġcom . d sm . d ms . presentation . base . Data Binding Inject Fragment Ċ import Ġcom . d sm . d ms . presentation . databinding . Fragment Register Complete Binding Ċ import Ġcom . d sm . d ms . presentation . view model . sign . register . Register ViewModel Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠRegister Complete Fragment Ġ: ĠData Binding Inject Fragment < Fragment Register Complete Binding >() Ġ{ ĊĠĠĠ Ġoverride Ġval Ġlayout Id : ĠInt ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠR . layout . fragment _ register _ complete ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġoverride Ġlateinit Ġvar ĠviewModel : ĠRegister ViewModel ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġbinding . vm Ġ= ĠviewModel ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Attach ( context : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Attach ( context ) ĊĠĠĠĠĠĠĠ Ġrequire Activity (). on Back Pressed Dispatcher . add Callback ( this ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġback () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġback () Ġ{ ĊĠĠĠĠĠĠĠ ĠNavigation . find Nav Controller ( require Activity (), ĠR . id . fragment _ container ). navigate Up () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġobserve Event () Ġ{ ĊĊĠĠĠ Ġ} Ċ }