package Ġcom . example . party er . activity Ċ Ċ import Ġandroid . arch . lifecycle . ViewModel Providers Ċ import Ġandroid . os . Bundle Ċ import Ġcom . example . party er . R Ċ import Ġcom . example . party er . view model . Calendar Setting ViewModel Ċ Ċ class ĠCalendar Settings Activity : ĠBase Activity () Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġcalendar Settings ViewModel : ĠCalendar Setting ViewModel ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ calendar _ settings ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinitialize ViewModel () Ġ{ ĊĠĠĠĠĠĠĠ Ġcalendar Settings ViewModel Ġ= ĠViewModel Providers . of ( this , ĠviewModel Factory ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. get ( Calendar Setting ViewModel :: class . java ) ĊĠĠĠ Ġ} Ċ Ċ }