2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.res.TypedArray;
|
|
|
|
import android.util.AttributeSet;
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
import android.widget.LinearLayout;
|
|
|
|
import android.widget.TextView;
|
2021-09-11 06:38:47 +00:00
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
2021-08-11 06:37:47 +00:00
|
|
|
import c.a.k.b;
|
2021-08-03 07:33:18 +00:00
|
|
|
import c.d.b.a.a;
|
|
|
|
import com.discord.R;
|
|
|
|
import com.discord.api.channel.Channel;
|
2021-10-08 22:11:56 +00:00
|
|
|
import com.discord.api.channel.ChannelUtils;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.api.guild.Guild;
|
|
|
|
import com.discord.api.guild.GuildFeature;
|
|
|
|
import com.discord.api.user.User;
|
2021-09-11 06:38:47 +00:00
|
|
|
import com.discord.databinding.WidgetGuildInviteInfoViewBinding;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.models.domain.ModelInvite;
|
|
|
|
import com.discord.models.user.CoreUser;
|
2021-08-18 06:27:30 +00:00
|
|
|
import com.discord.models.user.MeUser;
|
|
|
|
import com.discord.stores.StoreStream;
|
2021-09-11 06:38:47 +00:00
|
|
|
import com.discord.utilities.dimen.DimenUtils;
|
|
|
|
import com.discord.utilities.drawable.DrawableCompat;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.utilities.error.Error;
|
2021-09-11 06:38:47 +00:00
|
|
|
import com.discord.utilities.guilds.GuildUtilsKt;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.utilities.icon.IconUtils;
|
|
|
|
import com.discord.utilities.images.MGImages;
|
|
|
|
import com.discord.utilities.view.extensions.ViewExtensions;
|
2021-09-11 06:38:47 +00:00
|
|
|
import com.discord.views.GuildView;
|
|
|
|
import com.discord.views.guilds.ServerMemberCount;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.facebook.drawee.view.SimpleDraweeView;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
import java.util.List;
|
2021-09-11 06:38:47 +00:00
|
|
|
import java.util.Objects;
|
2021-08-03 07:33:18 +00:00
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
/* compiled from: WidgetInviteInfo.kt */
|
2021-09-11 06:38:47 +00:00
|
|
|
public final class WidgetInviteInfo extends ConstraintLayout {
|
|
|
|
private final WidgetGuildInviteInfoViewBinding binding;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
public WidgetInviteInfo(Context context) {
|
|
|
|
this(context, null, 0, 6, null);
|
|
|
|
}
|
|
|
|
|
|
|
|
public WidgetInviteInfo(Context context, AttributeSet attributeSet) {
|
|
|
|
this(context, attributeSet, 0, 4, null);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetInviteInfo(Context context, AttributeSet attributeSet, int i) {
|
|
|
|
super(context, attributeSet, i);
|
|
|
|
m.checkNotNullParameter(context, "ctx");
|
2021-09-11 06:38:47 +00:00
|
|
|
LayoutInflater.from(getContext()).inflate(R.layout.widget_guild_invite_info_view, this);
|
2021-08-09 22:51:56 +00:00
|
|
|
int i2 = R.id.invite_avatar;
|
2021-09-11 06:38:47 +00:00
|
|
|
GuildView guildView = (GuildView) findViewById(R.id.invite_avatar);
|
|
|
|
if (guildView != null) {
|
2021-08-09 22:51:56 +00:00
|
|
|
i2 = R.id.invite_avatar_small;
|
2021-09-11 06:38:47 +00:00
|
|
|
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) findViewById(R.id.invite_avatar_small);
|
|
|
|
if (simpleDraweeView != null) {
|
|
|
|
i2 = R.id.invite_member_container_layout;
|
|
|
|
ServerMemberCount serverMemberCount = (ServerMemberCount) findViewById(R.id.invite_member_container_layout);
|
|
|
|
if (serverMemberCount != null) {
|
|
|
|
i2 = R.id.invite_message;
|
|
|
|
TextView textView = (TextView) findViewById(R.id.invite_message);
|
|
|
|
if (textView != null) {
|
|
|
|
i2 = R.id.invite_title;
|
|
|
|
TextView textView2 = (TextView) findViewById(R.id.invite_title);
|
|
|
|
if (textView2 != null) {
|
|
|
|
i2 = R.id.title_layout;
|
|
|
|
LinearLayout linearLayout = (LinearLayout) findViewById(R.id.title_layout);
|
|
|
|
if (linearLayout != null) {
|
|
|
|
WidgetGuildInviteInfoViewBinding widgetGuildInviteInfoViewBinding = new WidgetGuildInviteInfoViewBinding(this, guildView, simpleDraweeView, serverMemberCount, textView, textView2, linearLayout);
|
|
|
|
m.checkNotNullExpressionValue(widgetGuildInviteInfoViewBinding, "WidgetGuildInviteInfoVie…ater.from(context), this)");
|
|
|
|
this.binding = widgetGuildInviteInfoViewBinding;
|
|
|
|
Context context2 = getContext();
|
|
|
|
m.checkNotNullExpressionValue(context2, "context");
|
|
|
|
parseAttributeSet(context2, attributeSet, i);
|
2021-09-15 06:33:54 +00:00
|
|
|
setBackgroundResource(R.drawable.bg_guild_scheduled_event_list_item_primary);
|
2021-09-11 06:38:47 +00:00
|
|
|
int dpToPixels = DimenUtils.dpToPixels(24);
|
|
|
|
setPadding(dpToPixels, dpToPixels, dpToPixels, dpToPixels);
|
|
|
|
return;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
throw new NullPointerException("Missing required view with ID: ".concat(getResources().getResourceName(i2)));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
|
|
public /* synthetic */ WidgetInviteInfo(Context context, AttributeSet attributeSet, int i, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i);
|
|
|
|
}
|
|
|
|
|
2021-09-11 06:38:47 +00:00
|
|
|
public static final /* synthetic */ WidgetGuildInviteInfoViewBinding access$getBinding$p(WidgetInviteInfo widgetInviteInfo) {
|
2021-08-03 07:33:18 +00:00
|
|
|
return widgetInviteInfo.binding;
|
|
|
|
}
|
|
|
|
|
|
|
|
private final void configureForDirectFriend(ModelInvite modelInvite) {
|
2021-09-11 06:38:47 +00:00
|
|
|
GuildView guildView = this.binding.b;
|
2021-08-03 07:33:18 +00:00
|
|
|
User inviter = modelInvite.getInviter();
|
|
|
|
String str = null;
|
2021-09-11 06:38:47 +00:00
|
|
|
String forUser$default = IconUtils.getForUser$default(inviter != null ? new CoreUser(inviter) : null, true, null, 4, null);
|
|
|
|
int i = GuildView.i;
|
|
|
|
guildView.a(forUser$default, null);
|
2021-08-03 07:33:18 +00:00
|
|
|
User inviter2 = modelInvite.getInviter();
|
2021-11-02 06:38:17 +00:00
|
|
|
String r = inviter2 != null ? inviter2.r() : null;
|
2021-08-03 07:33:18 +00:00
|
|
|
String str2 = "";
|
2021-11-02 06:38:17 +00:00
|
|
|
if (r == null) {
|
|
|
|
r = str2;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
User inviter3 = modelInvite.getInviter();
|
2021-11-02 06:38:17 +00:00
|
|
|
String r2 = inviter3 != null ? inviter3.r() : null;
|
|
|
|
if (r2 == null) {
|
|
|
|
r2 = str2;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2021-11-02 06:38:17 +00:00
|
|
|
sb.append(r2);
|
2021-08-03 07:33:18 +00:00
|
|
|
sb.append("#");
|
|
|
|
User inviter4 = modelInvite.getInviter();
|
|
|
|
if (inviter4 != null) {
|
|
|
|
str = inviter4.f();
|
|
|
|
}
|
|
|
|
if (str != null) {
|
|
|
|
str2 = str;
|
|
|
|
}
|
|
|
|
sb.append(str2);
|
|
|
|
String sb2 = sb.toString();
|
2021-11-29 21:56:34 +00:00
|
|
|
SimpleDraweeView simpleDraweeView = this.binding.f1894c;
|
2021-09-11 06:38:47 +00:00
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.inviteAvatarSmall");
|
|
|
|
simpleDraweeView.setVisibility(8);
|
|
|
|
ServerMemberCount serverMemberCount = this.binding.d;
|
|
|
|
m.checkNotNullExpressionValue(serverMemberCount, "binding.inviteMemberContainerLayout");
|
|
|
|
serverMemberCount.setVisibility(8);
|
|
|
|
TextView textView = this.binding.f;
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkNotNullExpressionValue(textView, "binding.inviteTitle");
|
2021-11-02 06:38:17 +00:00
|
|
|
textView.setText(getInviteTitleForDirectFriend(r));
|
2021-09-11 06:38:47 +00:00
|
|
|
this.binding.f.setTextSize(2, 26.0f);
|
|
|
|
TextView textView2 = this.binding.e;
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkNotNullExpressionValue(textView2, "binding.inviteMessage");
|
|
|
|
textView2.setText(getInviteSubtitleForDirectFriend(sb2));
|
2021-09-11 06:38:47 +00:00
|
|
|
this.binding.e.setTextSize(2, 18.0f);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-09-28 06:22:36 +00:00
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:27:0x006c, code lost:
|
|
|
|
if ((r6.length() > 0) == true) goto L_0x0070;
|
2021-08-03 07:33:18 +00:00
|
|
|
*/
|
|
|
|
private final void configureForGDM(ModelInvite modelInvite) {
|
|
|
|
Channel channel = modelInvite.getChannel();
|
2021-09-28 06:22:36 +00:00
|
|
|
if (channel != null) {
|
|
|
|
m.checkNotNullExpressionValue(channel, "model.channel ?: return");
|
2021-11-29 21:56:34 +00:00
|
|
|
SimpleDraweeView simpleDraweeView = this.binding.f1894c;
|
2021-09-28 06:22:36 +00:00
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.inviteAvatarSmall");
|
|
|
|
User inviter = modelInvite.getInviter();
|
|
|
|
IconUtils.setIcon$default(simpleDraweeView, inviter != null ? new CoreUser(inviter) : null, R.dimen.avatar_size_hero, null, null, null, 56, null);
|
|
|
|
User inviter2 = modelInvite.getInviter();
|
2021-11-02 06:38:17 +00:00
|
|
|
String r = inviter2 != null ? inviter2.r() : null;
|
|
|
|
if (r == null) {
|
|
|
|
r = "";
|
2021-09-28 06:22:36 +00:00
|
|
|
}
|
|
|
|
boolean z2 = true;
|
|
|
|
int i = 0;
|
2021-11-02 06:38:17 +00:00
|
|
|
String c2 = ChannelUtils.c(channel).length() > 0 ? ChannelUtils.c(channel) : r;
|
2021-11-10 07:31:25 +00:00
|
|
|
if (ChannelUtils.w(channel) && (r6 = channel.g()) != null) {
|
2021-09-28 06:22:36 +00:00
|
|
|
}
|
|
|
|
z2 = false;
|
|
|
|
this.binding.b.a(z2 ? IconUtils.getForChannel$default(channel, null, 2, null) : IconUtils.INSTANCE.getDefaultForGroupDM(channel.h()), null);
|
2021-11-29 21:56:34 +00:00
|
|
|
SimpleDraweeView simpleDraweeView2 = this.binding.f1894c;
|
2021-09-28 06:22:36 +00:00
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView2, "binding.inviteAvatarSmall");
|
|
|
|
if (!z2) {
|
|
|
|
i = 8;
|
|
|
|
}
|
|
|
|
simpleDraweeView2.setVisibility(i);
|
|
|
|
TextView textView = this.binding.e;
|
|
|
|
m.checkNotNullExpressionValue(textView, "binding.inviteMessage");
|
2021-10-08 22:11:56 +00:00
|
|
|
textView.setText(getFormattedGuildName(c2));
|
2021-09-28 06:22:36 +00:00
|
|
|
TextView textView2 = this.binding.f;
|
|
|
|
m.checkNotNullExpressionValue(textView2, "binding.inviteTitle");
|
2021-11-02 06:38:17 +00:00
|
|
|
textView2.setText(getIntroTextForGroup(r, ChannelUtils.c(channel)));
|
2021-09-28 06:22:36 +00:00
|
|
|
this.binding.d.setOnline(null);
|
|
|
|
this.binding.d.setMembers(Integer.valueOf(modelInvite.getApproximateMemberCount()));
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private final void configureForGuild(ModelInvite modelInvite) {
|
2021-11-11 07:35:24 +00:00
|
|
|
List<GuildFeature> m;
|
|
|
|
List<GuildFeature> m2;
|
2021-08-03 07:33:18 +00:00
|
|
|
int i = 0;
|
|
|
|
boolean z2 = modelInvite.getInviter() != null && modelInvite.getApproximateMemberCount() < 200;
|
2021-09-11 06:38:47 +00:00
|
|
|
Guild guild = modelInvite.getGuild();
|
|
|
|
if (guild != null) {
|
|
|
|
GuildView guildView = this.binding.b;
|
|
|
|
m.checkNotNullExpressionValue(guild, "it");
|
2021-11-11 07:35:24 +00:00
|
|
|
guildView.a(IconUtils.getForGuild$default(new com.discord.models.guild.Guild(guild), null, true, null, 10, null), GuildUtilsKt.computeShortName(guild.w()));
|
2021-09-11 06:38:47 +00:00
|
|
|
}
|
2021-08-03 07:33:18 +00:00
|
|
|
String str = null;
|
|
|
|
if (z2) {
|
2021-11-29 21:56:34 +00:00
|
|
|
SimpleDraweeView simpleDraweeView = this.binding.f1894c;
|
2021-09-11 06:38:47 +00:00
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.inviteAvatarSmall");
|
2021-08-03 07:33:18 +00:00
|
|
|
User inviter = modelInvite.getInviter();
|
2021-09-11 06:38:47 +00:00
|
|
|
IconUtils.setIcon$default(simpleDraweeView, IconUtils.getForUser$default(inviter != null ? new CoreUser(inviter) : null, true, null, 4, null), (int) R.dimen.avatar_size_medium, (Function1) null, (MGImages.ChangeDetector) null, 24, (Object) null);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2021-09-11 06:38:47 +00:00
|
|
|
this.binding.d.setMembers(!z2 ? Integer.valueOf(modelInvite.getApproximateMemberCount()) : null);
|
|
|
|
this.binding.d.setOnline(!z2 ? Integer.valueOf(modelInvite.getApproximatePresenceCount()) : null);
|
2021-11-29 21:56:34 +00:00
|
|
|
SimpleDraweeView simpleDraweeView2 = this.binding.f1894c;
|
2021-09-11 06:38:47 +00:00
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView2, "binding.inviteAvatarSmall");
|
2021-08-03 07:33:18 +00:00
|
|
|
if (!z2) {
|
|
|
|
i = 8;
|
|
|
|
}
|
2021-09-11 06:38:47 +00:00
|
|
|
simpleDraweeView2.setVisibility(i);
|
|
|
|
TextView textView = this.binding.e;
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkNotNullExpressionValue(textView, "binding.inviteMessage");
|
2021-09-11 06:38:47 +00:00
|
|
|
Guild guild2 = modelInvite.getGuild();
|
2021-11-11 07:35:24 +00:00
|
|
|
String w = guild2 != null ? guild2.w() : null;
|
|
|
|
if (w == null) {
|
|
|
|
w = "";
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2021-11-11 07:35:24 +00:00
|
|
|
textView.setText(getFormattedGuildName(w));
|
2021-09-11 06:38:47 +00:00
|
|
|
Guild guild3 = modelInvite.getGuild();
|
2021-11-11 07:35:24 +00:00
|
|
|
if (guild3 == null || (m2 = guild3.m()) == null || !m2.contains(GuildFeature.VERIFIED)) {
|
2021-09-11 06:38:47 +00:00
|
|
|
Guild guild4 = modelInvite.getGuild();
|
2021-11-11 07:35:24 +00:00
|
|
|
if (!(guild4 == null || (m = guild4.m()) == null || !m.contains(GuildFeature.PARTNERED))) {
|
2021-09-11 06:38:47 +00:00
|
|
|
TextView textView2 = this.binding.e;
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkNotNullExpressionValue(textView2, "binding.inviteMessage");
|
2021-08-09 22:51:56 +00:00
|
|
|
ViewExtensions.setCompoundDrawableWithIntrinsicBounds$default(textView2, R.drawable.ic_partnered_badge, 0, 0, 0, 14, null);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
} else {
|
2021-09-11 06:38:47 +00:00
|
|
|
TextView textView3 = this.binding.e;
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkNotNullExpressionValue(textView3, "binding.inviteMessage");
|
2021-08-09 22:51:56 +00:00
|
|
|
ViewExtensions.setCompoundDrawableWithIntrinsicBounds$default(textView3, R.drawable.ic_verified_badge, 0, 0, 0, 14, null);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2021-09-11 06:38:47 +00:00
|
|
|
TextView textView4 = this.binding.f;
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkNotNullExpressionValue(textView4, "binding.inviteTitle");
|
|
|
|
User inviter2 = modelInvite.getInviter();
|
|
|
|
if (inviter2 != null) {
|
|
|
|
str = inviter2.r();
|
|
|
|
}
|
|
|
|
textView4.setText(getIntroText(str));
|
|
|
|
}
|
|
|
|
|
|
|
|
private final CharSequence getFormattedGuildName(String str) {
|
2021-11-05 06:48:17 +00:00
|
|
|
return b.l(a.w("**", str, "**"), new Object[0], null, 2);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private final CharSequence getIntroText(String str) {
|
2021-08-09 22:51:56 +00:00
|
|
|
return str == null ? b.j(this, R.string.instant_invite_you_have_been_invited_to_join, new Object[0], null, 4) : b.j(this, R.string.auth_message_invited_by, new Object[]{str}, null, 4);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private final CharSequence getIntroTextForGroup(String str, String str2) {
|
2021-08-09 22:51:56 +00:00
|
|
|
return str2.length() > 0 ? b.j(this, R.string.auth_message_invited_by, new Object[]{str}, null, 4) : b.j(this, R.string.instant_invite_you_have_been_invited_to_join_group_dm, new Object[0], null, 4);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private final CharSequence getInviteSubtitleForDirectFriend(String str) {
|
2021-08-09 22:51:56 +00:00
|
|
|
return b.j(this, R.string.instant_invite_direct_friend_description, new Object[]{str}, null, 4);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private final CharSequence getInviteTitleForDirectFriend(String str) {
|
2021-08-09 22:51:56 +00:00
|
|
|
return b.j(this, R.string.instant_invite_you_have_been_invited_to_chat, new Object[]{str}, null, 4);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private final void parseAttributeSet(Context context, AttributeSet attributeSet, int i) {
|
|
|
|
if (attributeSet != null) {
|
|
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R.a.WidgetInviteInfo, i, 0);
|
|
|
|
m.checkNotNullExpressionValue(obtainStyledAttributes, "context.obtainStyledAttr…iteInfo, defStyleAttr, 0)");
|
|
|
|
obtainStyledAttributes.recycle();
|
|
|
|
post(new WidgetInviteInfo$parseAttributeSet$1(this, (int) obtainStyledAttributes.getDimension(0, 0.0f), (int) obtainStyledAttributes.getDimension(1, 0.0f)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void configureUI(ModelInvite modelInvite) {
|
|
|
|
m.checkNotNullParameter(modelInvite, "model");
|
2021-09-11 06:38:47 +00:00
|
|
|
this.binding.b.b();
|
2021-08-03 07:33:18 +00:00
|
|
|
if (modelInvite.getGuild() == null && modelInvite.getChannel() == null && modelInvite.getInviter() != null) {
|
|
|
|
configureForDirectFriend(modelInvite);
|
|
|
|
} else if (modelInvite.getGuild() == null) {
|
|
|
|
configureForGDM(modelInvite);
|
|
|
|
} else {
|
|
|
|
configureForGuild(modelInvite);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void configureUIFailure(Error error) {
|
2021-09-11 06:38:47 +00:00
|
|
|
this.binding.f.setText(R.string.instant_invite_expired);
|
|
|
|
this.binding.e.setText(R.string.invite_button_expired);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (error != null) {
|
|
|
|
Error.Response response = error.getResponse();
|
|
|
|
m.checkNotNullExpressionValue(response, "e.response");
|
|
|
|
if (response.getCode() == 30001) {
|
2021-08-18 06:27:30 +00:00
|
|
|
MeUser me2 = StoreStream.Companion.getUsers().getMe();
|
2021-09-11 06:38:47 +00:00
|
|
|
TextView textView = this.binding.f;
|
2021-08-18 06:27:30 +00:00
|
|
|
m.checkNotNullExpressionValue(textView, "binding.inviteTitle");
|
|
|
|
b.m(textView, R.string.too_many_user_guilds_alert_description, new Object[0], new WidgetInviteInfo$configureUIFailure$1(me2));
|
2021-09-11 06:38:47 +00:00
|
|
|
this.binding.e.setText(R.string.too_many_user_guilds_description);
|
|
|
|
this.binding.e.setTextSize(0, getResources().getDimension(R.dimen.uikit_textsize_medium));
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
2021-09-11 06:38:47 +00:00
|
|
|
TextView textView2 = this.binding.e;
|
2021-08-18 06:27:30 +00:00
|
|
|
m.checkNotNullExpressionValue(textView2, "binding.inviteMessage");
|
|
|
|
ViewExtensions.setCompoundDrawableWithIntrinsicBounds$default(textView2, 0, 0, 0, 0, 15, null);
|
2021-09-11 06:38:47 +00:00
|
|
|
ServerMemberCount serverMemberCount = this.binding.d;
|
|
|
|
m.checkNotNullExpressionValue(serverMemberCount, "binding.inviteMemberContainerLayout");
|
|
|
|
serverMemberCount.setVisibility(8);
|
|
|
|
GuildView guildView = this.binding.b;
|
|
|
|
Context context = getContext();
|
|
|
|
m.checkNotNullExpressionValue(context, "context");
|
|
|
|
int themedDrawableRes = DrawableCompat.getThemedDrawableRes(context, (int) R.attr.img_poop, (int) R.drawable.img_poop_dark);
|
|
|
|
Objects.requireNonNull(guildView);
|
|
|
|
MGImages mGImages = MGImages.INSTANCE;
|
|
|
|
SimpleDraweeView simpleDraweeView = guildView.j.b;
|
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.guildAvatar");
|
|
|
|
MGImages.setImage$default(mGImages, simpleDraweeView, themedDrawableRes, (MGImages.ChangeDetector) null, 4, (Object) null);
|
2021-11-25 08:24:35 +00:00
|
|
|
TextView textView3 = guildView.j.f100c;
|
2021-09-11 06:38:47 +00:00
|
|
|
m.checkNotNullExpressionValue(textView3, "binding.guildText");
|
|
|
|
textView3.setVisibility(8);
|
2021-11-29 21:56:34 +00:00
|
|
|
SimpleDraweeView simpleDraweeView2 = this.binding.f1894c;
|
2021-09-11 06:38:47 +00:00
|
|
|
m.checkNotNullExpressionValue(simpleDraweeView2, "binding.inviteAvatarSmall");
|
|
|
|
simpleDraweeView2.setVisibility(8);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|