package androidx.leanback.widget;

import android.content.Context;
import android.content.res.Resources;
import com.martsnew.tv.R;

/* JADX INFO: loaded from: classes.dex */
public final class z0 {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f8742c;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public boolean f8744e;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f8743d = true;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public A0 f8745f = A0.f8340a;

    public final B0 a(Context context) {
        B0 b02 = new B0();
        b02.f8341a = 1;
        b02.f8342b = this.f8740a;
        boolean z8 = this.f8741b;
        b02.f8343c = z8;
        b02.f8344d = this.f8742c;
        if (z8) {
            this.f8745f.getClass();
            b02.f8346f = context.getResources().getDimensionPixelSize(R.dimen.lb_rounded_rect_corner_radius);
        }
        if (!b02.f8344d) {
            b02.f8341a = 1;
            b02.f8345e = this.f8744e && b02.f8342b;
            return b02;
        }
        if (!this.f8743d) {
            b02.f8341a = 2;
            b02.f8345e = true;
            return b02;
        }
        b02.f8341a = 3;
        this.f8745f.getClass();
        Resources resources = context.getResources();
        b02.f8348h = resources.getDimension(R.dimen.lb_material_shadow_focused_z);
        b02.f8347g = resources.getDimension(R.dimen.lb_material_shadow_normal_z);
        b02.f8345e = this.f8744e && b02.f8342b;
        return b02;
    }
}
