package com.seewo.ota.l;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.seewo.ota.R;
import com.seewo.ota.view.CircleProgressBar;

/* JADX INFO: compiled from: SysAbUpgradeDialogBinding.java */
/* JADX INFO: loaded from: classes.dex */
public final class b {
    private final RelativeLayout a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final TextView f2143b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final CircleProgressBar f2144c;

    private b(RelativeLayout relativeLayout, TextView textView, CircleProgressBar circleProgressBar, TextView textView2) {
        this.a = relativeLayout;
        this.f2143b = textView;
        this.f2144c = circleProgressBar;
    }

    public static b a(View view) {
        int i2 = R.id.progress_text;
        TextView textView = (TextView) view.findViewById(R.id.progress_text);
        if (textView != null) {
            i2 = R.id.progressbar;
            CircleProgressBar circleProgressBar = (CircleProgressBar) view.findViewById(R.id.progressbar);
            if (circleProgressBar != null) {
                i2 = R.id.upgrade_system_point;
                TextView textView2 = (TextView) view.findViewById(R.id.upgrade_system_point);
                if (textView2 != null) {
                    return new b((RelativeLayout) view, textView, circleProgressBar, textView2);
                }
            }
        }
        throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i2)));
    }

    public static b c(LayoutInflater layoutInflater) {
        return d(layoutInflater, null, false);
    }

    public static b d(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z) {
        View viewInflate = layoutInflater.inflate(R.layout.sys_ab_upgrade_dialog, viewGroup, false);
        if (z) {
            viewGroup.addView(viewInflate);
        }
        return a(viewInflate);
    }

    public RelativeLayout b() {
        return this.a;
    }
}
