44 lines
2.0 KiB
Java
44 lines
2.0 KiB
Java
package com.discord.widgets.settings.profile;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
import c.a.a.e.a;
|
|
import com.discord.utilities.user.UserUtils;
|
|
import com.discord.widgets.settings.profile.SettingsUserProfileViewModel;
|
|
import d0.g0.t;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetSettingsUserProfile.kt */
|
|
public final class WidgetSettingsUserProfile$configureAvatarSelect$1 extends o implements Function1<String, Unit> {
|
|
public final /* synthetic */ SettingsUserProfileViewModel.ViewState.Loaded $viewState;
|
|
public final /* synthetic */ WidgetSettingsUserProfile this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetSettingsUserProfile$configureAvatarSelect$1(WidgetSettingsUserProfile widgetSettingsUserProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) {
|
|
super(1);
|
|
this.this$0 = widgetSettingsUserProfile;
|
|
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] */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(String str) {
|
|
invoke(str);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(String str) {
|
|
m.checkNotNullParameter(str, "dataUrl");
|
|
if (UserUtils.INSTANCE.isPremium(this.$viewState.getUser()) || !t.startsWith$default(str, "data:image/gif", false, 2, null)) {
|
|
WidgetSettingsUserProfile.access$getViewModel$p(this.this$0).updateAvatar(str);
|
|
return;
|
|
}
|
|
a.b bVar = a.j;
|
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
a.b.a(bVar, parentFragmentManager, 4, this.this$0.getString(2131892489), null, "User Settings", "User Profile", null, null, false, false, 968);
|
|
}
|
|
}
|