mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-31 22:53:37 +00:00
Code clean up
This commit is contained in:
@@ -35,7 +35,7 @@ public class CacheUtil {
|
||||
return chain.proceed(request);
|
||||
};
|
||||
|
||||
private boolean isConnected(){
|
||||
private boolean isConnected() {
|
||||
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo();
|
||||
return (netInfo != null && netInfo.isConnected());
|
||||
|
||||
Reference in New Issue
Block a user