package com.google.android.material.sidesheet;

import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewConfiguration;
import ar.tvplayer.tv.R;
import defpackage.AbstractC2172;
import defpackage.C2098;
import defpackage.C2140;
import defpackage.C3347;
import defpackage.C4335;
import java.util.LinkedHashSet;

/* JADX INFO: loaded from: classes3.dex */
public class SideSheetBehavior<V extends View> extends ᵟˌᵫ {

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final ColorStateList f1066;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public int f1067;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final C3347 f1068;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final C2140 f1069;

    public SideSheetBehavior() {
        new ʽˎˇˌ(this);
        this.f1067 = 5;
        new LinkedHashSet();
    }

    public SideSheetBehavior(Context context, AttributeSet attributeSet) {
        new ʽˎˇˌ(this);
        this.f1067 = 5;
        new LinkedHashSet();
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC2172.f8631);
        if (typedArrayObtainStyledAttributes.hasValue(3)) {
            this.f1066 = ᵺᵘ.ˉᵲ(context, typedArrayObtainStyledAttributes, 3);
        }
        if (typedArrayObtainStyledAttributes.hasValue(6)) {
            this.f1069 = C2140.m5654(context, attributeSet, 0, R.style.h).m7053();
        }
        if (typedArrayObtainStyledAttributes.hasValue(5)) {
            typedArrayObtainStyledAttributes.getResourceId(5, -1);
        }
        C2140 c2140 = this.f1069;
        if (c2140 != null) {
            C3347 c3347 = new C3347(c2140);
            this.f1068 = c3347;
            c3347.f12842.f16502 = new C2098(context);
            c3347.m7683();
            ColorStateList colorStateList = this.f1066;
            if (colorStateList != null) {
                C3347 c33472 = this.f1068;
                C4335 c4335 = c33472.f12842;
                if (c4335.f16505 != colorStateList) {
                    c4335.f16505 = colorStateList;
                    c33472.onStateChange(c33472.getState());
                }
            } else {
                TypedValue typedValue = new TypedValue();
                context.getTheme().resolveAttribute(android.R.attr.colorBackground, typedValue, true);
                this.f1068.setTint(typedValue.data);
            }
        }
        typedArrayObtainStyledAttributes.getDimension(2, -1.0f);
        typedArrayObtainStyledAttributes.getBoolean(4, true);
        typedArrayObtainStyledAttributes.recycle();
        ViewConfiguration.get(context).getScaledMaximumFlingVelocity();
    }
}
