package Ġcom . course work . android tod ometer . extensions Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . view . input method . Input Method Manager Ċ import Ġandroidx . core . content . Context Compat Ċ Ċ fun ĠActivity . hide Soft Keyboard () Ġ{ ĊĠĠĠ Ġcurrent Focus ?. let Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġinput Method Manager Ġ= ĠContext Compat . getSystem Service ( this , ĠInput Method Manager :: class . java ) ĊĠĠĠĠĠĠĠ Ġinput Method Manager ?. hide Soft Input From Window ( it . window Token , Ġ 0 ) ĊĠĠĠ Ġ} Ċ } Ċ