package com.seewo.factoryaging.co2;

import android.content.Context;
import android.view.View;
import com.cvte.vman.R;
import com.seewo.factoryaging.s0.j;
import j.p0.d.r;

/* JADX INFO: compiled from: Co2TestModelView.kt */
/* JADX INFO: loaded from: classes.dex */
public final class g implements j {
    private final Context a;

    public g(Context context) {
        r.f(context, "context");
        this.a = context;
    }

    @Override // com.seewo.factoryaging.s0.j
    public boolean a() {
        return h.c.d.b.a.a();
    }

    @Override // com.seewo.factoryaging.s0.j
    public boolean e() {
        if (!this.a.getResources().getBoolean(R.bool.showCo2Fragment)) {
            return false;
        }
        if (this.a.getResources().getBoolean(R.bool.enableCheckDevice) || h.c.d.d.b.d()) {
            return h.c.d.d.c.a();
        }
        return true;
    }

    @Override // com.seewo.factoryaging.s0.j
    public View i() {
        return View.inflate(this.a, R.layout.view_co2_fragment, null);
    }

    @Override // com.seewo.factoryaging.s0.j
    public float j() {
        return 1.0f;
    }
}
