package Ġio . github . jb arr 2 1 . run ter val . ui . util Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . fragment . app . Fragment Activity Ċ import Ġandroidx . we ar . ambient . Ambient Mode Support Ċ import Ġio . github . jb arr 2 1 . run ter val . R Ċ Ċ abstract Ġclass ĠR unter val Activity Ġ: ĠFragment Activity () Ġ{ ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ Ġif Ġ( resources . getBoolean ( R . bool . is _ we arable )) Ġ{ ĊĠĠĠĠĠ Ġval Ġcontroller Ġ= ĠAmb ient Mode Support . attach ( this ) ĊĠĠĠĠĠ Ġval Ġis Ambient Ġ= Ġcontroller . is Ambient ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ