package Ġcom . t pt z . playground . base Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . core . view . View Compat Ċ import Ġandroidx . core . view . Window Insets Compat Ċ import Ġandroidx . core . view . Window Insets Controller Compat Ċ Ċ /** Ċ Ġ* Ġ@ author ĠCreated Ġby ĠCh ang ĠLi u Ġon Ġ 2 0 2 1 / 1 2 / 0 5 Ċ Ġ*/ Ċ open Ġclass ĠBase Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġon Resume () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Resume () ĊĠĠĠĠĠĠĠ ĠView Compat . getWindow Insets Controller ( findViewById ( android . R . id . content )) ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . hide ( Window Insets Compat . Type . navigation Bars ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . system Bars Behavior Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠWindow Insets Controller Compat . BE HAV IOR _ SHOW _ TRAN SI ENT _ BAR S _ BY _ SW I PE ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }