discord-jadx/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$setWindowIn...

37 lines
1.9 KiB
Java

package com.discord.widgets.chat.input;
import android.view.View;
import androidx.core.graphics.Insets;
import androidx.core.view.OnApplyWindowInsetsListener;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import c.a.i.h4;
import c.a.i.i4;
import d0.z.d.m;
/* compiled from: WidgetChatInput.kt */
public final class WidgetChatInput$setWindowInsetsListeners$3 implements OnApplyWindowInsetsListener {
public final /* synthetic */ boolean $shouldApplyWindowInsets;
public final /* synthetic */ WidgetChatInput this$0;
public WidgetChatInput$setWindowInsetsListeners$3(WidgetChatInput widgetChatInput, boolean z2) {
this.this$0 = widgetChatInput;
this.$shouldApplyWindowInsets = z2;
}
@Override // androidx.core.view.OnApplyWindowInsetsListener
public final WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat windowInsetsCompat) {
m.checkNotNullParameter(view, "<anonymous parameter 0>");
m.checkNotNullParameter(windowInsetsCompat, "insets");
WindowInsetsCompat build = new WindowInsetsCompat.Builder().setSystemWindowInsets(Insets.of(0, 0, 0, this.$shouldApplyWindowInsets ? windowInsetsCompat.getSystemWindowInsetBottom() : 0)).build();
m.checkNotNullExpressionValue(build, "WindowInsetsCompat.Build… )\n ).build()");
ViewCompat.dispatchApplyWindowInsets(WidgetChatInput.access$getBinding$p(this.this$0).q, build);
h4 h4Var = WidgetChatInput.access$getBinding$p(this.this$0).r;
m.checkNotNullExpressionValue(h4Var, "binding.guard");
ViewCompat.dispatchApplyWindowInsets(h4Var.a, build);
i4 i4Var = WidgetChatInput.access$getBinding$p(this.this$0).f1728s;
m.checkNotNullExpressionValue(i4Var, "binding.guardMemberVerification");
ViewCompat.dispatchApplyWindowInsets(i4Var.a, build);
return windowInsetsCompat.consumeSystemWindowInsets();
}
}