discord-jadx/app/src/main/java/com/discord/widgets/hubs/WidgetHubAddName$$special$$...

44 lines
1.7 KiB
Java

package com.discord.widgets.hubs;
import android.os.Bundle;
import b.d.b.a.a;
import com.discord.app.AppFragment;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: ArgUtils.kt */
/* loaded from: classes2.dex */
public final class WidgetHubAddName$$special$$inlined$args$1 extends o implements Function0<HubAddNameArgs> {
public final /* synthetic */ String $argsKey;
public final /* synthetic */ AppFragment $this_args;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public WidgetHubAddName$$special$$inlined$args$1(AppFragment appFragment, String str) {
super(0);
this.$this_args = appFragment;
this.$argsKey = str;
}
/* JADX WARN: Can't rename method to resolve collision */
/* JADX WARN: Multi-variable type inference failed */
@Override // kotlin.jvm.functions.Function0
public final HubAddNameArgs invoke() {
Bundle arguments = this.$this_args.getArguments();
Object obj = null;
Object obj2 = arguments != null ? arguments.get(this.$argsKey) : null;
if (obj2 instanceof HubAddNameArgs) {
obj = obj2;
}
HubAddNameArgs hubAddNameArgs = (HubAddNameArgs) obj;
HubAddNameArgs hubAddNameArgs2 = hubAddNameArgs;
if (hubAddNameArgs == null) {
hubAddNameArgs2 = this.$this_args.getMostRecentIntent().getParcelableExtra(this.$argsKey);
}
if (hubAddNameArgs2 != null) {
return hubAddNameArgs2;
}
StringBuilder R = a.R("Missing args for class type ");
a.j0(HubAddNameArgs.class, R, " + key ");
throw new IllegalStateException(a.G(R, this.$argsKey, '!'));
}
}