package Ġcom . mark nk am au . just java . utils Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . input method . Input Method Manager Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ Ċ fun ĠAppCompatActivity . hide Keyboard () Ġ{ ĊĠĠĠ Ġthis . current Focus ?. let Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmanager Ġ= Ġthis . getSystem Service ( Context . INPUT _ METHOD _ SERVICE ) Ġas ĠInput Method Manager ĊĠĠĠĠĠĠĠ Ġmanager . hide Soft Input From Window ( it . window Token , Ġ 0 ) ĊĠĠĠ Ġ} Ċ } Ċ