forked from Juby210/discord-jadx
31 lines
1.5 KiB
Java
31 lines
1.5 KiB
Java
|
package com.discord.widgets.guilds.invite;
|
||
|
|
||
|
import android.content.res.Resources;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.FrameLayout;
|
||
|
import d0.z.d.m;
|
||
|
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) {
|
||
|
m.checkParameterIsNotNull(view, "view");
|
||
|
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();
|
||
|
}
|
||
|
}
|