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;
import com.discord.app.AppFragment;
2021-11-02 06:38:17 +00:00
import d0.z.d.a0;
import d0.z.d.o;
2021-08-03 07:33:18 +00:00
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-11-02 06:38:17 +00:00
public final HubEmailArgs mo1invoke() {
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-11-05 06:48:17 +00:00
StringBuilder R = a.R("Missing args for class type ");
R.append(a0.getOrCreateKotlinClass(HubEmailArgs.class).getSimpleName());
R.append(" + key ");
throw new IllegalStateException(a.G(R, this.$argsKey, '!'));
2021-08-03 07:33:18 +00:00
}
}