package Ġcom . tk u hn . recipe finder . ui . main Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġcom . tk u hn . recipe finder . R Ċ import Ġcom . tk u hn . recipe finder . databinding . Activity Main Binding Ċ import Ġcom . tk u hn . recipe finder . ui . Base Activity Ċ import Ġorg . k oin . android x . view model . ext . android . get ViewModel Ċ Ċ class ĠMainActivity Ġ: ĊĠĠĠ ĠBase Activity < MainActivity ViewModel , ĠActivity Main Binding >( R . layout . activity _ main ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠviewModel (): ĠMainActivity ViewModel Ġ= Ġget ViewModel () ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġbinding . vm Ġ= Ġvm ĊĠĠĠ Ġ} Ċ }