discord-jadx/app/src/main/java/com/discord/widgets/home/WidgetHome$setPanelWindowIn...

32 lines
1.6 KiB
Java

package com.discord.widgets.home;
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 d0.z.d.m;
/* compiled from: WidgetHome.kt */
public final class WidgetHome$setPanelWindowInsetsListeners$2 implements OnApplyWindowInsetsListener {
public final /* synthetic */ WidgetHome this$0;
public WidgetHome$setPanelWindowInsetsListeners$2(WidgetHome widgetHome) {
this.this$0 = widgetHome;
}
@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, windowInsetsCompat.getSystemWindowInsetBottom())).build();
m.checkNotNullExpressionValue(build, "WindowInsetsCompat.Build… )\n ).build()");
ViewCompat.dispatchApplyWindowInsets(WidgetHome.access$getBinding$p(this.this$0).d.b.d, build);
ViewCompat.dispatchApplyWindowInsets(WidgetHome.access$getBinding$p(this.this$0).d.b.e, build);
WidgetHomePanelNsfw access$getPanelNsfw$p = WidgetHome.access$getPanelNsfw$p(this.this$0);
if (access$getPanelNsfw$p != null) {
access$getPanelNsfw$p.dispatchApplyWindowInsets(windowInsetsCompat);
}
return windowInsetsCompat.consumeSystemWindowInsets();
}
}