public static boolean isActiveNetworkMetered(android.net.ConnectivityManager p2)
    {
        if (android.os.Build$VERSION.SDK_INT < 16) {
            int v2_3 = p2.getActiveNetworkInfo();
            if (v2_3 != 0) {
                int v2_4 = v2_3.getType();
                if ((v2_4 == 1) || ((v2_4 == 7) || (v2_4 == 9))) {
                    return 0;
                } else {
                    return 1;
                }
            } else {
                return 1;
            }
        } else {
            return p2.isActiveNetworkMetered();
        }
    }