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-08-03 07:33:18 +00:00
|
|
|
import d0.z.d.m;
|
2021-09-11 06:38:47 +00:00
|
|
|
import kotlin.TypeCastException;
|
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-09-11 06:38:47 +00:00
|
|
|
GuildView guildView = WidgetInviteInfo.access$getBinding$p(this.this$0).b;
|
|
|
|
m.checkNotNullExpressionValue(guildView, "binding.inviteAvatar");
|
|
|
|
ViewGroup.LayoutParams layoutParams = guildView.getLayoutParams();
|
|
|
|
if (layoutParams != null) {
|
|
|
|
int i = this.$size;
|
|
|
|
layoutParams.height = i;
|
|
|
|
layoutParams.width = i;
|
|
|
|
guildView.setLayoutParams(layoutParams);
|
|
|
|
} else {
|
|
|
|
throw new TypeCastException("null cannot be cast to non-null type android.view.ViewGroup.LayoutParams");
|
|
|
|
}
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
if (this.$userSize != 0) {
|
2021-09-14 06:27:26 +00:00
|
|
|
SimpleDraweeView simpleDraweeView = WidgetInviteInfo.access$getBinding$p(this.this$0).f1852c;
|
2021-09-11 06:38:47 +00:00
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.inviteAvatarSmall");
|
|
|
|
ViewGroup.LayoutParams layoutParams2 = simpleDraweeView.getLayoutParams();
|
|
|
|
if (layoutParams2 != null) {
|
|
|
|
int i2 = this.$userSize;
|
|
|
|
layoutParams2.height = i2;
|
|
|
|
layoutParams2.width = i2;
|
|
|
|
simpleDraweeView.setLayoutParams(layoutParams2);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
throw new TypeCastException("null cannot be cast to non-null type android.view.ViewGroup.LayoutParams");
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|