package Ġde . mark us fis ch . android . binary eye . app Ċ Ċ import Ġde . mark us fis ch . android . binary eye . view . System Bar Metrics Ċ import Ġde . mark us fis ch . android . binary eye . R Ċ Ċ import Ġandroid . os . Build Ċ import Ġandroid . support . v 4 . content . Context Compat Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġandroid . view . View Ċ import Ġandroid . view . Window Ċ Ċ fun Ġinit System Bars ( activity : ĠAppCompatActivity ?) Ġ{ Ċ ĉ val Ġview Ġ= Ġactivity ?. findViewById ( R . id . main _ layout ) Ċ ĉ if Ġ( view Ġ!= Ġnull Ġ&& Ġset System Bar Color ( activity . window , Ċĉĉ ĉ Context Compat . getColor ( activity , Ċĉĉĉĉ ĉ R . color . primary _ dark _ trans luc ent ))) Ġ{ Ċĉ ĉ view . set Padding ( Ċĉĉĉĉ 0 , Ċĉĉĉ ĉ System Bar Metrics . getStatus Bar Height ( Ċĉĉĉĉĉ ĉ activity . resources ), Ċĉĉĉĉ 0 , Ċĉĉĉĉ 0 ) Ċ ĉ } Ċ } Ċ Ċ private Ġfun Ġset System Bar Color ( window : ĠWindow , Ġcolor : ĠInt ): ĠBoolean Ġ{ Ċ ĉ if Ġ( Build . VERSION . SDK _ INT Ġ< ĠBuild . VERSION _ CODES . LO L LI POP ) Ġ{ Ċĉ ĉ return Ġfalse Ċ ĉ } ĊĊ ĉ window . status Bar Color Ġ= Ġcolor Ċ ĉ window . navigation Bar Color Ġ= Ġcolor Ċ ĉ window . decor View . system Ui Visibility Ġ= Ċĉĉ ĉ View . SYSTEM _ UI _ FLAG _ LAYOUT _ ST ABLE Ġor Ċĉĉ ĉ View . SYSTEM _ UI _ FLAG _ LAYOUT _ HIDE _ NAV IG ATION Ġor Ċĉĉ ĉ View . SYSTEM _ UI _ FLAG _ LAYOUT _ FULL SCREEN ĊĊ ĉ return Ġtrue Ċ } Ċ