package com.google.android.material.bottomsheet;

import android.view.View;
import java.lang.ref.Reference;

/* JADX INFO: loaded from: classes2.dex */
public final class i {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final h f22318c = new h(this);

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ BottomSheetBehavior f22319d;

    public i(BottomSheetBehavior bottomSheetBehavior) {
        this.f22319d = bottomSheetBehavior;
    }

    public final void a(int i10) {
        BottomSheetBehavior bottomSheetBehavior = this.f22319d;
        Reference reference = bottomSheetBehavior.viewRef;
        if (reference == null || reference.get() == null) {
            return;
        }
        this.f22316a = i10;
        if (this.f22317b) {
            return;
        }
        ((View) bottomSheetBehavior.viewRef.get()).postOnAnimation(this.f22318c);
        this.f22317b = true;
    }
}
