package android.support.v4.net;

import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/* loaded from: classes.dex */
class ConnectivityManagerCompatHoneycombMR2 {
    ConnectivityManagerCompatHoneycombMR2() {
    }

    public static boolean isActiveNetworkMetered(ConnectivityManager cm) {
        NetworkInfo info = cm.getActiveNetworkInfo();
        if (info == null) {
            return true;
        }
        int type = info.getType();
        if (type != 1 && type != 7 && type != 9) {
            return true;
        }
        return false;
    }
}
