package Ġio . github . g math i . no vel library . util . view Ċ Ċ import Ġandroid . graphics . Color Ċ import Ġandroid . os . Build Ċ import Ġandroid . view . View Ċ import Ġandroid . view . Window Ċ import Ġandroidx . annotation . Requires Api Ċ Ċ @ Requires Api ( Build . VERSION _ CODES . P ) Ċ fun ĠWindow . edge To Edge ( light System Ui : ĠBoolean Ġ= Ġfalse ) Ġ{ ĊĠĠĠ Ġdecor View . system Ui Visibility Ġ= Ġwhen Ġ{ ĊĠĠĠĠĠĠĠ Ġ// ĠHandle Ġlight Ġstatus Ġand Ġnavigation Ġbars Ġprogram matically Ġto Ġavoid Ġduplicate Ġthemes ĊĠĠĠĠĠĠĠ Ġlight System Ui Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ ST ABLE Ġor ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ HIDE _ NAV IG ATION Ġor ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LIGHT _ STATUS _ BAR Ġor ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LIGHT _ NAV IG ATION _ BAR ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġelse Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ ST ABLE Ġor ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ HIDE _ NAV IG ATION ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġnavigation Bar Color Ġ= ĠColor . TRANSP ARENT Ċ } Ċ Ċ fun ĠWindow . show Bar () Ġ{ ĊĠĠĠ Ġdecor View . system Ui Visibility Ġ= ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ FULL SCREEN Ġor ĊĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ HIDE _ NAV IG ATION Ġor ĊĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ ST ABLE Ċ } Ċ Ċ fun ĠWindow . hide Bar () Ġ{ ĊĠĠĠ Ġdecor View . system Ui Visibility Ġ= ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ FULL SCREEN Ġor ĊĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ LAYOUT _ HIDE _ NAV IG ATION Ġor ĊĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ FULL SCREEN Ġor ĊĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ HIDE _ NAV IG ATION Ġor ĊĠĠĠĠĠĠĠ ĠView . SYSTEM _ UI _ FLAG _ IM MER SIVE _ STICK Y Ċ } Ċ Ċ fun ĠWindow . default Bar () Ġ{ ĊĠĠĠ Ġdecor View . system Ui Visibility Ġ= ĠView . SYSTEM _ UI _ FLAG _ VISIBLE Ċ } Ċ Ċ fun ĠWindow . is Default Bar () Ġ= Ġdecor View . system Ui Visibility Ġ== ĠView . SYSTEM _ UI _ FLAG _ VISIBLE Ċ