discord-jadx/app/src/main/java/com/discord/widgets/directories/WidgetDirectoryCategory$$sp...

46 lines
1.9 KiB
Java

package com.discord.widgets.directories;
import android.os.Bundle;
import c.d.b.a.a;
import com.discord.app.AppFragment;
import d0.z.d.a0;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: ArgUtils.kt */
public final class WidgetDirectoryCategory$$special$$inlined$args$1 extends o implements Function0<DirectoryCategoryArgs> {
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) */
public WidgetDirectoryCategory$$special$$inlined$args$1(AppFragment appFragment, String str) {
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 */
public final DirectoryCategoryArgs mo1invoke() {
Bundle arguments = this.$this_args.getArguments();
Object obj = null;
Object obj2 = arguments != null ? arguments.get(this.$argsKey) : null;
if (obj2 instanceof DirectoryCategoryArgs) {
obj = obj2;
}
DirectoryCategoryArgs directoryCategoryArgs = (DirectoryCategoryArgs) obj;
DirectoryCategoryArgs directoryCategoryArgs2 = directoryCategoryArgs;
if (directoryCategoryArgs == null) {
directoryCategoryArgs2 = this.$this_args.getMostRecentIntent().getParcelableExtra(this.$argsKey);
}
if (directoryCategoryArgs2 != null) {
return directoryCategoryArgs2;
}
StringBuilder P = a.P("Missing args for class type ");
P.append(a0.getOrCreateKotlinClass(DirectoryCategoryArgs.class).getSimpleName());
P.append(" + key ");
throw new IllegalStateException(a.G(P, this.$argsKey, '!'));
}
}