2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import android.content.res.Resources;
|
|
|
|
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$configureNormalUI$$inlined$doOnLayout$1 implements View.OnLayoutChangeListener {
|
|
|
|
public final /* synthetic */ WidgetGuildInviteShareSheet this$0;
|
|
|
|
|
|
|
|
public WidgetGuildInviteShareSheet$configureNormalUI$$inlined$doOnLayout$1(WidgetGuildInviteShareSheet widgetGuildInviteShareSheet) {
|
|
|
|
this.this$0 = widgetGuildInviteShareSheet;
|
|
|
|
}
|
|
|
|
|
|
|
|
@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;
|
|
|
|
Resources resources = this.this$0.getResources();
|
|
|
|
m.checkNotNullExpressionValue(resources, "resources");
|
|
|
|
layoutParams2.height = (int) (((double) resources.getDisplayMetrics().heightPixels) * 0.9d);
|
|
|
|
view.setLayoutParams(layoutParams2);
|
|
|
|
WidgetGuildInviteShareSheet.access$getBinding$p(this.this$0).m.requestLayout();
|
|
|
|
}
|
|
|
|
}
|