public static android.net.NetworkInfo getNetworkInfoFromBroadcast(android.net.ConnectivityManager p1, android.content.Intent p2)
    {
        int v2_2 = ((android.net.NetworkInfo) p2.getParcelableExtra(networkInfo));
        if (v2_2 == 0) {
            return 0;
        } else {
            return p1.getNetworkInfo(v2_2.getType());
        }
    }