forked from Juby210/discord-jadx
39 lines
1.7 KiB
Java
39 lines
1.7 KiB
Java
package com.discord.widgets.user.profile;
|
|
|
|
import android.graphics.Bitmap;
|
|
import com.discord.models.member.GuildMember;
|
|
import com.discord.utilities.colors.RepresentativeColorsKt;
|
|
import com.discord.widgets.user.profile.UserProfileHeaderViewModel;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function2;
|
|
/* compiled from: UserProfileHeaderView.kt */
|
|
public final class UserProfileHeaderView$updateViewState$1 extends o implements Function2<Bitmap, String, Unit> {
|
|
public final /* synthetic */ UserProfileHeaderViewModel.ViewState.Loaded $viewState;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public UserProfileHeaderView$updateViewState$1(UserProfileHeaderViewModel.ViewState.Loaded loaded) {
|
|
super(2);
|
|
this.$viewState = loaded;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public /* bridge */ /* synthetic */ Unit invoke(Bitmap bitmap, String str) {
|
|
invoke(bitmap, str);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Bitmap bitmap, String str) {
|
|
m.checkNotNullParameter(bitmap, "bitmap");
|
|
GuildMember guildMember = this.$viewState.getGuildMember();
|
|
if (guildMember == null || !guildMember.hasAvatar()) {
|
|
RepresentativeColorsKt.getUserRepresentativeColors().handleBitmap(this.$viewState.getAvatarColorId(), bitmap, str);
|
|
} else {
|
|
RepresentativeColorsKt.getGuildMemberRepresentativeColors().handleBitmap(this.$viewState.getGuildMemberColorId(), bitmap, str);
|
|
}
|
|
}
|
|
}
|