package com.seewo.factoryaging.co2;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.cvte.vman.R;
import j.n;
import j.p0.d.r;
import java.util.LinkedHashMap;
import java.util.Map;

/* JADX INFO: compiled from: Co2Fragment.kt */
/* JADX INFO: loaded from: classes.dex */
@n
public final class Co2Fragment extends com.seewo.factoryaging.s0.d<d, c> implements d {
    private TextView b0;
    private TextView c0;
    public Map<Integer, View> d0 = new LinkedHashMap();

    @Override // com.seewo.factoryaging.co2.d
    public void B(int i2) {
        TextView textView = this.b0;
        if (textView != null) {
            textView.setText(g0(R.string.string_co2, Integer.valueOf(i2)));
        } else {
            r.t("mCo2TextView");
            throw null;
        }
    }

    @Override // g.h.a.c
    public View B0(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        r.f(layoutInflater, "inflater");
        return layoutInflater.inflate(R.layout.fragment_co2, viewGroup);
    }

    @Override // com.seewo.factoryaging.s0.d, g.h.a.c
    public /* synthetic */ void E0() {
        super.E0();
        G1();
    }

    @Override // com.seewo.factoryaging.s0.d
    public void G1() {
        this.d0.clear();
    }

    @Override // com.seewo.factoryaging.s0.d
    public void J1(View view, Bundle bundle) {
        r.f(view, "view");
        super.J1(view, bundle);
        View viewFindViewById = view.findViewById(R.id.text_co2);
        r.c(viewFindViewById);
        this.b0 = (TextView) viewFindViewById;
        View viewFindViewById2 = view.findViewById(R.id.text_co2_main_chip);
        r.c(viewFindViewById2);
        this.c0 = (TextView) viewFindViewById2;
        RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.rl_co2);
        com.seewo.factoryaging.e1.d dVar = com.seewo.factoryaging.e1.d.a;
        r.e(relativeLayout, "backgroundCo2");
        dVar.c(relativeLayout);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // com.seewo.factoryaging.s0.d
    /* JADX INFO: renamed from: K1, reason: merged with bridge method [inline-methods] */
    public c I1() {
        Context contextP = P();
        r.c(contextP);
        return new e(contextP);
    }

    @Override // com.seewo.factoryaging.s0.d, g.h.a.c
    public void V0(View view, Bundle bundle) {
        r.f(view, "view");
        super.V0(view, bundle);
        c cVarH1 = H1();
        r.c(cVarH1);
        cVarH1.l();
    }

    @Override // com.seewo.factoryaging.co2.d
    public void u(int i2) {
        TextView textView = this.c0;
        if (textView != null) {
            textView.setText(g0(R.string.string_co2_main_chip, Integer.valueOf(i2)));
        } else {
            r.t("mCo2MainChipTextView");
            throw null;
        }
    }
}
