package Ġcom . ros en . home control app . activity Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Build Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . widget . Array Adapter Ċ import Ġandroid . widget . ListView Ċ import Ġandroidx . annotation . Requires Api Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . ros en . home control app . R Ċ import Ġcom . ros en . home control app . constant . command Logs Ċ import Ġcom . ros en . home control app . constant . devices Ċ import Ġcom . ros en . home control app . model . Command Log Ċ import Ġcom . ros en . home control app . model . Device Ċ import Ġcom . ros en . home control app . storage . Preferences ĊĊ Ċ class ĠCommand Log Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġ@ Requires Api ( Build . VERSION _ CODES . O ) ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ command _ log ) ĊĊĠĠĠĠĠĠĠ Ġval Ġprefs Ġ= ĠPreferences ( this ) ĊĊĠĠĠĠĠĠĠ Ġcommand Logs Ġ= Ġprefs . get Logs () ĊĠĠĠĠĠĠĠ Ġval Ġcommand Logs _ info Ġ= Ġcommand Logs . map Ġ{ Ġit . get _ info () Ġ}. to Mutable List () ĊĠĠĠĠĠĠĠ Ġval ĠlistView Ġ= ĠfindViewById < ListView >( R . id . Log ListView ) ĊĠĠĠĠĠĠĠ Ġval Ġarray Ad aper Ġ= ĠArray Adapter < String >( this , Ġandroid . R . layout . simple _ list _ item _ 1 , Ġcommand Logs _ info ) ĊĠĠĠĠĠĠĠ ĠlistView . adapter Ġ= Ġarray Ad aper ĊĊĠĠĠ Ġ} Ċ } Ċ