package androidx.core.view;

import android.os.Build;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes.dex */
public final class r2 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final v2 f1814a;

    public r2() {
        int i10 = Build.VERSION.SDK_INT;
        if (i10 >= 30) {
            this.f1814a = new u2();
        } else if (i10 >= 29) {
            this.f1814a = new t2();
        } else {
            this.f1814a = new s2();
        }
    }

    @NonNull
    public r2 setDisplayCutout(@Nullable r rVar) {
        this.f1814a.setDisplayCutout(rVar);
        return this;
    }

    public r2(f3 f3Var) {
        int i10 = Build.VERSION.SDK_INT;
        if (i10 >= 30) {
            this.f1814a = new u2(f3Var);
        } else if (i10 >= 29) {
            this.f1814a = new t2(f3Var);
        } else {
            this.f1814a = new s2(f3Var);
        }
    }
}
