2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.tabs;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
import androidx.core.view.OnApplyWindowInsetsListener;
|
|
|
|
import androidx.core.view.WindowInsetsCompat;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: WidgetTabsHost.kt */
|
|
|
|
public final class WidgetTabsHost$setPanelWindowInsetsListeners$3 implements OnApplyWindowInsetsListener {
|
|
|
|
public final /* synthetic */ boolean $isCallStatusVisible;
|
|
|
|
|
|
|
|
public WidgetTabsHost$setPanelWindowInsetsListeners$3(boolean z2) {
|
|
|
|
this.$isCallStatusVisible = z2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // androidx.core.view.OnApplyWindowInsetsListener
|
|
|
|
public final WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat windowInsetsCompat) {
|
|
|
|
int i;
|
|
|
|
m.checkNotNullExpressionValue(view, "v");
|
|
|
|
if (this.$isCallStatusVisible) {
|
|
|
|
i = 0;
|
|
|
|
} else {
|
|
|
|
m.checkNotNullExpressionValue(windowInsetsCompat, "insets");
|
|
|
|
i = windowInsetsCompat.getSystemWindowInsetTop();
|
|
|
|
}
|
|
|
|
view.setPadding(view.getPaddingLeft(), i, view.getPaddingRight(), view.getPaddingBottom());
|
|
|
|
return windowInsetsCompat.consumeSystemWindowInsets();
|
|
|
|
}
|
|
|
|
}
|