discord-jadx/app/src/main/java/com/discord/widgets/hubs/WidgetHubEmailFlow$$special$$inlined$args$1.java

46 lines
1.7 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package com.discord.widgets.hubs;
import android.os.Bundle;
import c.d.b.a.a;
2021-10-15 06:18:26 +00:00
import c0.z.d.a0;
import c0.z.d.o;
2021-08-03 07:33:18 +00:00
import com.discord.app.AppFragment;
import kotlin.jvm.functions.Function0;
/* compiled from: ArgUtils.kt */
2021-08-10 21:19:22 +00:00
public final class WidgetHubEmailFlow$$special$$inlined$args$1 extends o implements Function0<HubEmailArgs> {
2021-08-03 07:33:18 +00:00
public final /* synthetic */ String $argsKey;
public final /* synthetic */ AppFragment $this_args;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
2021-08-10 21:19:22 +00:00
public WidgetHubEmailFlow$$special$$inlined$args$1(AppFragment appFragment, String str) {
2021-08-03 07:33:18 +00:00
super(0);
this.$this_args = appFragment;
this.$argsKey = str;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARNING: Unknown variable types count: 1 */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
2021-10-15 06:18:26 +00:00
public final HubEmailArgs mo17invoke() {
2021-08-03 07:33:18 +00:00
Bundle arguments = this.$this_args.getArguments();
Object obj = null;
Object obj2 = arguments != null ? arguments.get(this.$argsKey) : null;
if (obj2 instanceof HubEmailArgs) {
obj = obj2;
}
HubEmailArgs hubEmailArgs = (HubEmailArgs) obj;
HubEmailArgs hubEmailArgs2 = hubEmailArgs;
if (hubEmailArgs == null) {
hubEmailArgs2 = this.$this_args.getMostRecentIntent().getParcelableExtra(this.$argsKey);
}
if (hubEmailArgs2 != null) {
return hubEmailArgs2;
}
2021-10-09 06:29:02 +00:00
StringBuilder O = a.O("Missing args for class type ");
O.append(a0.getOrCreateKotlinClass(HubEmailArgs.class).getSimpleName());
O.append(" + key ");
throw new IllegalStateException(a.F(O, this.$argsKey, '!'));
2021-08-03 07:33:18 +00:00
}
}