package Ġcom . l ub oso ft . sms for warder . utilities Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . View Ċ import Ġandroid . view . input method . Input Method Manager Ċ Ċ object ĠKeyboard Utils Ġ{ ĊĊĠĠĠ Ġfun Ġhide Keyboard From ( context : ĠContext , Ġview : ĠView ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġview ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġinput Method Manager Ġ= Ġ Ġcontext . getSystem Service ( Context . INPUT _ METHOD _ SERVICE ) Ġas ĠInput Method Manager ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinput Method Manager . hide Soft Input From Window ( it . window Token , Ġ 0 ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġhide Keyboard ( activity : ĠActivity ) Ġ{ ĊĠĠĠĠĠĠĠ Ġhide Keyboard From ( activity , Ġactivity . current Focus ) ĊĠĠĠ Ġ} Ċ Ċ }