package Ġio . ai ico . flight Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . View Ċ import Ġandroid . view . input method . Input Method Manager Ċ import Ġandroid . widget . Toast Ċ import Ġandroidx . core . content . Context Compat Ċ import Ġio . reactivex . dis pos ables . Composite Disposable Ċ import Ġio . reactivex . dis pos ables . Disposable Ċ Ċ fun ĠActivity . hide Keyboard ( focus View : ĠView ) Ġ{ ĊĠĠĠ Ġval Ġimm Ġ= ĠContext Compat . getSystem Service ( this , ĠInput Method Manager :: class . java ) ĊĠĠĠ Ġimm ?. hide Soft Input From Window ( focus View . window Token , ĠInput Method Manager . HIDE _ NOT _ ALWAYS ) Ċ } Ċ Ċ fun ĠDis posable . addTo ( composite Disposable : ĠComposite Disposable ) Ġ{ ĊĠĠĠ Ġcomposite Disposable . add ( this ) Ċ } Ċ Ċ fun ĠContext . toast ( message : ĠString ) Ġ{ ĊĠĠĠ ĠToast . makeText ( this , Ġmessage , ĠToast . LENGTH _ SHORT ). show () Ċ }