package P;

import android.os.Build;
import android.view.View;
import android.view.WindowInsets;
import java.lang.reflect.Field;

/* JADX INFO: loaded from: classes.dex */
public final class H implements View.OnApplyWindowInsetsListener {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public s0 f2385a = null;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ View f2386b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ InterfaceC0175t f2387c;

    public H(View view, InterfaceC0175t interfaceC0175t) {
        this.f2386b = view;
        this.f2387c = interfaceC0175t;
    }

    @Override // android.view.View.OnApplyWindowInsetsListener
    public WindowInsets onApplyWindowInsets(View view, WindowInsets windowInsets) {
        s0 s0VarD = s0.d(view, windowInsets);
        int i = Build.VERSION.SDK_INT;
        InterfaceC0175t interfaceC0175t = this.f2387c;
        if (i < 30) {
            I.a(windowInsets, this.f2386b);
            if (s0VarD.equals(this.f2385a)) {
                return interfaceC0175t.h(view, s0VarD).c();
            }
        }
        this.f2385a = s0VarD;
        s0 s0VarH = interfaceC0175t.h(view, s0VarD);
        if (i >= 30) {
            return s0VarH.c();
        }
        Field field = Q.f2392a;
        G.c(view);
        return s0VarH.c();
    }
}
