package Ġcom . google . firebase . ud acity . friendly chat . hel pes Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . net . Connectivity Manager Ċ import Ġandroid . net . Network Info Ċ import Ġandroid . content . Context . CONNECT IVITY _ SERVICE ĊĊĊ Ċ /** Ċ Ġ* ĠCreated Ġby Ġj orge _ car o Ġon Ġ 2 / 9 / 1 8 . Ċ Ġ*/ Ċ class ĠInternet Helper ( private Ġvar Ġcontext : ĠContext ) Ġ{ ĊĊĠĠĠ Ġfun Ġcheck Internet (): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġconn Manager Ġ= Ġcontext . getSystem Service ( Context . CONNECT IVITY _ SERVICE ) Ġas ĠConnect ivity Manager ĊĠĠĠĠĠĠĠ Ġval Ġm Wifi Ġ= Ġconn Manager . get Network Info ( Connectivity Manager . TYPE _ WIFI ) ĊĠĠĠĠĠĠĠ Ġreturn Ġm Wifi . isConnected ĊĠĠĠ Ġ} Ċ }