package xyz.netfly.ads;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import org.drive_hunter.R;

/* JADX INFO: loaded from: classes3.dex */
public class CustomControlsView extends LinearLayout {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public ImageButton f34829a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public View f34830b;

    public CustomControlsView(Context context) {
        super(context);
        a(context);
    }

    private void setMuteImage(boolean z10) {
        this.f34829a.setImageDrawable(z10 ? g0.d.getDrawable(getContext(), R.drawable.video_mute) : g0.d.getDrawable(getContext(), R.drawable.video_unmute));
    }

    public final void a(Context context) {
        ((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.custom_video_controls, (ViewGroup) this, true);
        this.f34829a = (ImageButton) findViewById(R.id.btn_mute);
        View viewFindViewById = findViewById(R.id.video_controls);
        this.f34830b = viewFindViewById;
        viewFindViewById.setVisibility(8);
    }

    public CustomControlsView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        a(context);
    }

    public CustomControlsView(Context context, AttributeSet attributeSet, int i10) {
        super(context, attributeSet, i10);
        a(context);
    }
}
