package fj;

import android.os.Bundle;
import android.view.View;
import android.view.ViewParent;
import androidx.coordinatorlayout.widget.CoordinatorLayout;

/* loaded from: classes3.dex */
public final class b {

    /* renamed from: a, reason: collision with root package name */
    private final View f18511a;

    /* renamed from: b, reason: collision with root package name */
    private boolean f18512b = false;

    /* renamed from: c, reason: collision with root package name */
    private int f18513c = 0;

    /* JADX WARN: Multi-variable type inference failed */
    public b(a aVar) {
        this.f18511a = (View) aVar;
    }

    private void a() {
        ViewParent parent = this.f18511a.getParent();
        if (parent instanceof CoordinatorLayout) {
            ((CoordinatorLayout) parent).g(this.f18511a);
        }
    }

    public int b() {
        return this.f18513c;
    }

    public boolean c() {
        return this.f18512b;
    }

    public void d(Bundle bundle) {
        this.f18512b = bundle.getBoolean("expanded", false);
        this.f18513c = bundle.getInt("expandedComponentIdHint", 0);
        if (this.f18512b) {
            a();
        }
    }

    public Bundle e() {
        Bundle bundle = new Bundle();
        bundle.putBoolean("expanded", this.f18512b);
        bundle.putInt("expandedComponentIdHint", this.f18513c);
        return bundle;
    }

    public void f(int i10) {
        this.f18513c = i10;
    }
}
