discord-jadx/app/src/main/java/com/discord/widgets/user/profile/UserProfileHeaderView$updat...

36 lines
1.5 KiB
Java

package com.discord.widgets.user.profile;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Ref$ObjectRef;
/* compiled from: UserProfileHeaderView.kt */
public final class UserProfileHeaderView$updateBannerColor$3 extends o implements Function1<Integer, Unit> {
public final /* synthetic */ Ref$ObjectRef $userSelectedBannerColor;
public final /* synthetic */ UserProfileHeaderView this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public UserProfileHeaderView$updateBannerColor$3(UserProfileHeaderView userProfileHeaderView, Ref$ObjectRef ref$ObjectRef) {
super(1);
this.this$0 = userProfileHeaderView;
this.$userSelectedBannerColor = ref$ObjectRef;
}
/* 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] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(Integer num) {
invoke(num);
return Unit.a;
}
public final void invoke(Integer num) {
if (num != null) {
this.this$0.getOnAvatarRepresentativeColorUpdated().invoke(num);
if (this.$userSelectedBannerColor.element == null) {
UserProfileHeaderView.access$getBinding$p(this.this$0).f1643c.setBackgroundColor(num.intValue());
}
}
}
}