package androidx.drawerlayout.widget;

import X.AnonymousClass094;
import android.view.View;
import android.view.WindowInsets;
import com.bytedance.covode.number.Covode;

public class DrawerLayout$1 implements View.OnApplyWindowInsetsListener {
    public final /* synthetic */ AnonymousClass094 LIZ;

    static {
        Covode.recordClassIndex(940);
    }

    public DrawerLayout$1(AnonymousClass094 r1) {
        this.LIZ = r1;
    }

    public final WindowInsets onApplyWindowInsets(View view, WindowInsets windowInsets) {
        boolean z;
        AnonymousClass094 r4 = (AnonymousClass094) view;
        boolean z2 = true;
        if (windowInsets.getSystemWindowInsetTop() > 0) {
            z = true;
        } else {
            z = false;
        }
        r4.LJI = windowInsets;
        r4.LJII = z;
        if (z || r4.getBackground() != null) {
            z2 = false;
        }
        r4.setWillNotDraw(z2);
        r4.requestLayout();
        return windowInsets.consumeSystemWindowInsets();
    }
}
