package com.google.android.gms.common.api.internal;

import android.view.View;
import com.google.android.material.sidesheet.SideSheetBehavior;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public Object f8284c = new y.a(this, 13);

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public Object f8285d;

    public r(SideSheetBehavior sideSheetBehavior) {
        this.f8285d = sideSheetBehavior;
    }

    public final n0 a() {
        com.google.android.gms.common.internal.w.b(((p) this.f8284c) != null, "execute parameter required");
        return new n0(this, (e8.c[]) this.f8285d, this.f8283b, this.f8282a);
    }

    public final void b(int i10) {
        if (((SideSheetBehavior) this.f8285d).viewRef == null || ((SideSheetBehavior) this.f8285d).viewRef.get() == null) {
            return;
        }
        this.f8282a = i10;
        if (this.f8283b) {
            return;
        }
        ((View) ((SideSheetBehavior) this.f8285d).viewRef.get()).postOnAnimation((Runnable) this.f8284c);
        this.f8283b = true;
    }
}
