package lt.vilnius.tvarkau.utils;

import android.app.Activity;
import android.content.Context;
import android.net.ConnectivityManager;

public class NetworkUtils {

    public static boolean isNetworkConnected(Activity activity) {
        ConnectivityManager cm = (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE);
        return cm.getActiveNetworkInfo() != null;
    }
}

@@ -385,16 +385,59 @@
  != null
+ && cm.getActiveNetworkInfo().isConnected()
 ;%0A    %7D%0A

Improve user network check by checking actual connection to internet