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.AbstractC0914;
import defpackage.C0871;
import defpackage.C2445;
import defpackage.C4879;
import defpackage.C5355;
import java.util.LinkedHashSet;

/* loaded from: classes3.dex */
public class SideSheetBehavior<V extends View> extends ʼٴ {

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final C2445 f1066;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final C4879 f1067;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public int f1068;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final ColorStateList f1069;

    public SideSheetBehavior() {
        new ᵿʤˑᵦ(this);
        this.f1068 = 5;
        new LinkedHashSet();
    }

    public SideSheetBehavior(Context context, AttributeSet attributeSet) {
        new ᵿʤˑᵦ(this);
        this.f1068 = 5;
        new LinkedHashSet();
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0914.f4180);
        if (typedArrayObtainStyledAttributes.hasValue(3)) {
            this.f1069 = ˉˇʨ.ᵪʩ(context, typedArrayObtainStyledAttributes, 3);
        }
        if (typedArrayObtainStyledAttributes.hasValue(6)) {
            this.f1067 = C4879.m10320(context, attributeSet, 0, R.style._11_res_0x7f14061c).m9814();
        }
        if (typedArrayObtainStyledAttributes.hasValue(5)) {
            typedArrayObtainStyledAttributes.getResourceId(5, -1);
        }
        C4879 c4879 = this.f1067;
        if (c4879 != null) {
            C2445 c2445 = new C2445(c4879);
            this.f1066 = c2445;
            c2445.f9549.f20066 = new C0871(context);
            c2445.m6252();
            ColorStateList colorStateList = this.f1069;
            if (colorStateList != null) {
                C2445 c24452 = this.f1066;
                C5355 c5355 = c24452.f9549;
                if (c5355.f20060 != colorStateList) {
                    c5355.f20060 = colorStateList;
                    c24452.onStateChange(c24452.getState());
                }
            } else {
                TypedValue typedValue = new TypedValue();
                context.getTheme().resolveAttribute(android.R.attr.colorBackground, typedValue, true);
                this.f1066.setTint(typedValue.data);
            }
        }
        typedArrayObtainStyledAttributes.getDimension(2, -1.0f);
        typedArrayObtainStyledAttributes.getBoolean(4, true);
        typedArrayObtainStyledAttributes.recycle();
        ViewConfiguration.get(context).getScaledMaximumFlingVelocity();
    }
}
