package Ġcom . xb ird . free fall detection Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . lifecycle . Observer Ċ import Ġcom . xb ird . device free fall lib .* Ċ import Ġkotlinx . android . synt hetic . main . activity _ fall _ detection .* ĊĊ Ċ class ĠFall Detection Activity Ġ: ĠDetection Activity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ fall _ detection ) ĊĠĠĠĠĠĠĠ Ġcount ViewModel . count Repo . observe ( this , ĠObserver Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtv Count . text Ġ= Ġ" Total ĠFall ĠCount Ġ"+ it ĊĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠ Ġ} Ċ } Ċ