package Ġcom . ms 8 . smart ir hub . android . learn _ signal Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . databinding . Data Binding Util Ċ import Ġcom . ms 8 . smart ir hub . android . R Ċ import Ġcom . ms 8 . smart ir hub . android . database . AppState Ċ import Ġcom . ms 8 . smart ir hub . android . databinding . AS ig Advanced Info Binding Ċ import Ġcom . ms 8 . smart ir hub . android . firebase . Realtime Database Functions Ċ Ċ class ĠAdvanced Signal Info Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġlateinit Ġvar Ġbinding : ĠAS ig Advanced Info Binding ĊĊĠĠĠ Ġoverride Ġfun Ġon Support Navigate Up (): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġon Back Pressed () ĊĠĠĠĠĠĠĠ Ġreturn Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠData Binding Util . set ContentView ( this , ĠR . layout . a _ sig _ advanced _ info ) ĊĊĠĠĠĠĠĠĠ Ġbinding . toolbar . title Ġ= ĠgetString ( R . string . signal _ information ) ĊĠĠĠĠĠĠĠ Ġset Support ActionBar ( binding . toolbar ) ĊĠĠĠĠĠĠĠ Ġsupport ActionBar ?. set Display Home As Up Enabled ( true ) ĊĊĠĠĠĠĠĠĠ ĠApp State . temp Data . temp Signal . get ()?. let Ġ{ Ġir Signal Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Code . text Ġ= Ġir Signal . code ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Encoding . text Ġ= Ġir Signal . encoding Type . toString () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv RawData . text Ġ= Ġir Signal . raw Data ToString () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Raw Len . text Ġ= Ġir Signal . raw Length . toString () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Repeat . text Ġ= Ġir Signal . repeat . toString () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv RawData Chunks Input . text Ġ= ĠReal time Database Functions . calculate Num Chunks ( ir Signal . raw Length ). toString () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ