2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import android.view.ViewGroup;
|
2021-09-11 06:38:47 +00:00
|
|
|
import com.discord.views.GuildView;
|
|
|
|
import com.facebook.drawee.view.SimpleDraweeView;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
2021-09-15 06:33:54 +00:00
|
|
|
import java.util.Objects;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: WidgetInviteInfo.kt */
|
|
|
|
public final class WidgetInviteInfo$parseAttributeSet$1 implements Runnable {
|
|
|
|
public final /* synthetic */ int $size;
|
|
|
|
public final /* synthetic */ int $userSize;
|
|
|
|
public final /* synthetic */ WidgetInviteInfo this$0;
|
|
|
|
|
|
|
|
public WidgetInviteInfo$parseAttributeSet$1(WidgetInviteInfo widgetInviteInfo, int i, int i2) {
|
|
|
|
this.this$0 = widgetInviteInfo;
|
|
|
|
this.$size = i;
|
|
|
|
this.$userSize = i2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // java.lang.Runnable
|
|
|
|
public final void run() {
|
|
|
|
if (this.$size != 0) {
|
2021-12-17 21:59:34 +00:00
|
|
|
GuildView guildView = WidgetInviteInfo.access$getBinding$p(this.this$0).f2380b;
|
2021-09-11 06:38:47 +00:00
|
|
|
m.checkNotNullExpressionValue(guildView, "binding.inviteAvatar");
|
|
|
|
ViewGroup.LayoutParams layoutParams = guildView.getLayoutParams();
|
2021-09-15 06:33:54 +00:00
|
|
|
Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type android.view.ViewGroup.LayoutParams");
|
|
|
|
int i = this.$size;
|
|
|
|
layoutParams.height = i;
|
|
|
|
layoutParams.width = i;
|
|
|
|
guildView.setLayoutParams(layoutParams);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
if (this.$userSize != 0) {
|
2021-12-17 21:59:34 +00:00
|
|
|
SimpleDraweeView simpleDraweeView = WidgetInviteInfo.access$getBinding$p(this.this$0).c;
|
2021-09-11 06:38:47 +00:00
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.inviteAvatarSmall");
|
|
|
|
ViewGroup.LayoutParams layoutParams2 = simpleDraweeView.getLayoutParams();
|
2021-09-15 06:33:54 +00:00
|
|
|
Objects.requireNonNull(layoutParams2, "null cannot be cast to non-null type android.view.ViewGroup.LayoutParams");
|
|
|
|
int i2 = this.$userSize;
|
|
|
|
layoutParams2.height = i2;
|
|
|
|
layoutParams2.width = i2;
|
|
|
|
simpleDraweeView.setLayoutParams(layoutParams2);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|