forked from Juby210/discord-jadx
45 lines
1.8 KiB
Java
45 lines
1.8 KiB
Java
package com.discord.widgets.mobile_reports;
|
|
|
|
import android.os.Bundle;
|
|
import c.d.b.a.a;
|
|
import c0.z.d.a0;
|
|
import c0.z.d.o;
|
|
import com.discord.app.AppFragment;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: ArgUtils.kt */
|
|
public final class WidgetMobileReports$$special$$inlined$args$1 extends o implements Function0<MobileReportArgs> {
|
|
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 WidgetMobileReports$$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 MobileReportArgs mo17invoke() {
|
|
Bundle arguments = this.$this_args.getArguments();
|
|
Object obj = null;
|
|
Object obj2 = arguments != null ? arguments.get(this.$argsKey) : null;
|
|
if (obj2 instanceof MobileReportArgs) {
|
|
obj = obj2;
|
|
}
|
|
MobileReportArgs mobileReportArgs = (MobileReportArgs) obj;
|
|
MobileReportArgs mobileReportArgs2 = mobileReportArgs;
|
|
if (mobileReportArgs == null) {
|
|
mobileReportArgs2 = this.$this_args.getMostRecentIntent().getParcelableExtra(this.$argsKey);
|
|
}
|
|
if (mobileReportArgs2 != null) {
|
|
return mobileReportArgs2;
|
|
}
|
|
StringBuilder O = a.O("Missing args for class type ");
|
|
O.append(a0.getOrCreateKotlinClass(MobileReportArgs.class).getSimpleName());
|
|
O.append(" + key ");
|
|
throw new IllegalStateException(a.F(O, this.$argsKey, '!'));
|
|
}
|
|
}
|