package o;

import android.view.View;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.google.android.material.sidesheet.SideSheetBehavior;
import java.lang.ref.WeakReference;
import java.util.WeakHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.se, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2444se {
    public final /* synthetic */ int a;
    public int b;
    public boolean c;
    public final Runnable d;
    public final /* synthetic */ AbstractC0375Om e;

    public C2444se(SideSheetBehavior sideSheetBehavior) {
        this.a = 1;
        this.e = sideSheetBehavior;
        this.d = new RunnableC2108p1(20, this);
    }

    public final void a(int i) {
        int i2 = this.a;
        Runnable runnable = this.d;
        AbstractC0375Om abstractC0375Om = this.e;
        switch (i2) {
            case 0:
                BottomSheetBehavior bottomSheetBehavior = (BottomSheetBehavior) abstractC0375Om;
                WeakReference weakReference = bottomSheetBehavior.U;
                if (weakReference != null && weakReference.get() != null) {
                    this.b = i;
                    if (!this.c) {
                        WeakHashMap weakHashMap = Oj0.a;
                        ((View) bottomSheetBehavior.U.get()).postOnAnimation((RunnableC2017o3) runnable);
                        this.c = true;
                        break;
                    }
                }
                break;
            default:
                SideSheetBehavior sideSheetBehavior = (SideSheetBehavior) abstractC0375Om;
                WeakReference weakReference2 = sideSheetBehavior.p;
                if (weakReference2 != null && weakReference2.get() != null) {
                    this.b = i;
                    if (!this.c) {
                        WeakHashMap weakHashMap2 = Oj0.a;
                        ((View) sideSheetBehavior.p.get()).postOnAnimation((RunnableC2108p1) runnable);
                        this.c = true;
                        break;
                    }
                }
                break;
        }
    }

    public C2444se(BottomSheetBehavior bottomSheetBehavior) {
        this.a = 0;
        this.e = bottomSheetBehavior;
        this.d = new RunnableC2017o3(3, this);
    }
}
