package Ġcom . z ach ary c ava . device medi ains pector . views ĊĊ Ċ import Ġandroid . widget . LinearLayout Ċ import Ġandroidx . card view . widget . Card View Ċ import Ġcom . z ach ary c ava . device medi ains pector . sources . Build Info Ċ import Ġcom . z ach ary c ava . device medi ains pector . sources . Device Ċ import Ġjava . util . ArrayList Ċ Ċ /** Ċ Ġ* ĠInformation Ġfragment Ġthat Ġdisplays Ġgeneral Ġdevice Ġinformation Ċ Ġ*/ Ċ class ĠDevice Info Fragment Ġ: ĠInformation Fragment () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġbuild Cards ( card Pane : ĠLinearLayout ) Ġ{ ĊĠĠĠĠĠĠĠ Ġcard Pane . addView ( build General Card ( Device ())) ĊĠĠĠĠĠĠĠ Ġcard Pane . addView ( build Build Card ( Build Info ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġbuild General Card ( device : ĠDevice ): ĠCard View ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġinfo Ġ= ĠArrayList < Pair < String , ĠString >>() ĊĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Manufacturer ", Ġdevice . manufacturer )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Model ", Ġdevice . model )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Product ", Ġdevice . product )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Consumer ĠBrand ", Ġdevice . consumer Brand )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Board ", Ġdevice . board )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Device ", Ġdevice . device )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Boot loader ĠVersion ", Ġdevice . boot loader )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Host ", Ġdevice . host )) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġcreate Card View (" General ", Ġinfo ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġbuild Build Card ( build : ĠBuild Info ): ĠCard View ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġinfo Ġ= ĠArrayList < Pair < String , ĠString >>() ĊĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" ID ", Ġbuild . id )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Time ", Ġbuild . time )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Type ", Ġbuild . type )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" User ", Ġbuild . user )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Details ", Ġbuild . details )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Tags ", Ġbuild . tags )) ĊĠĠĠĠĠĠĠ Ġinfo . add ( Pair (" Fingerprint ", Ġbuild . fingerprint )) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġcreate Card View ( Ġ" OS ĠBuild ", Ġinfo ) ĊĠĠĠ Ġ} Ċ } Ċ