2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
import android.widget.FrameLayout;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
import java.util.Objects;
|
|
|
|
/* compiled from: View.kt */
|
|
|
|
public final class WidgetGuildInviteShareSheet$configureEmptyStateUI$$inlined$doOnLayout$1 implements View.OnLayoutChangeListener {
|
|
|
|
@Override // android.view.View.OnLayoutChangeListener
|
|
|
|
public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
|
2021-09-15 06:33:54 +00:00
|
|
|
m.checkNotNullParameter(view, "view");
|
2021-08-03 07:33:18 +00:00
|
|
|
view.removeOnLayoutChangeListener(this);
|
|
|
|
ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
|
|
|
|
Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams");
|
|
|
|
FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) layoutParams;
|
|
|
|
layoutParams2.height = -1;
|
|
|
|
view.setLayoutParams(layoutParams2);
|
|
|
|
}
|
|
|
|
}
|