62 lines
2.9 KiB
Java
62 lines
2.9 KiB
Java
package com.discord.widgets.settings.profile;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
import c.a.y.a0;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.List;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetSettingsUserProfile.kt */
|
|
public final class WidgetSettingsUserProfile$configureAvatarSelect$2 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ List $avatarSheetOptions;
|
|
public final /* synthetic */ WidgetSettingsUserProfile this$0;
|
|
|
|
/* compiled from: WidgetSettingsUserProfile.kt */
|
|
/* renamed from: com.discord.widgets.settings.profile.WidgetSettingsUserProfile$configureAvatarSelect$2$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<Integer, Unit> {
|
|
public final /* synthetic */ WidgetSettingsUserProfile$configureAvatarSelect$2 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(WidgetSettingsUserProfile$configureAvatarSelect$2 widgetSettingsUserProfile$configureAvatarSelect$2) {
|
|
super(1);
|
|
this.this$0 = widgetSettingsUserProfile$configureAvatarSelect$2;
|
|
}
|
|
|
|
/* 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.intValue());
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(int i) {
|
|
if (i == 0) {
|
|
WidgetSettingsUserProfile widgetSettingsUserProfile = this.this$0.this$0;
|
|
WidgetSettingsUserProfile.access$setImageSelectedResult$p(widgetSettingsUserProfile, WidgetSettingsUserProfile.access$getAvatarSelectedResult$p(widgetSettingsUserProfile));
|
|
this.this$0.this$0.openMediaChooser();
|
|
} else if (i == 1) {
|
|
WidgetSettingsUserProfile.access$getViewModel$p(this.this$0.this$0).updateAvatar(null);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetSettingsUserProfile$configureAvatarSelect$2(WidgetSettingsUserProfile widgetSettingsUserProfile, List list) {
|
|
super(0);
|
|
this.this$0 = widgetSettingsUserProfile;
|
|
this.$avatarSheetOptions = list;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
a0.a aVar = a0.j;
|
|
FragmentManager childFragmentManager = this.this$0.getChildFragmentManager();
|
|
m.checkNotNullExpressionValue(childFragmentManager, "childFragmentManager");
|
|
aVar.a(childFragmentManager, "", this.$avatarSheetOptions, false, new AnonymousClass1(this));
|
|
}
|
|
}
|