2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.auth;
|
|
|
|
|
2021-08-09 22:51:56 +00:00
|
|
|
import com.discord.R;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.app.AppActivity;
|
|
|
|
import d0.l;
|
2021-08-25 07:02:36 +00:00
|
|
|
import d0.w.h.c;
|
|
|
|
import d0.w.i.a.e;
|
|
|
|
import d0.w.i.a.k;
|
2021-08-03 07:33:18 +00:00
|
|
|
import d0.z.d.m;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import kotlin.jvm.functions.Function2;
|
|
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
|
|
/* compiled from: WidgetOauth2AuthorizeSamsung.kt */
|
|
|
|
@e(c = "com.discord.widgets.auth.WidgetOauth2AuthorizeSamsung$samsungCallbackHandshake$2", f = "WidgetOauth2AuthorizeSamsung.kt", l = {}, m = "invokeSuspend")
|
|
|
|
public final class WidgetOauth2AuthorizeSamsung$samsungCallbackHandshake$2 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
|
|
|
public int label;
|
|
|
|
public final /* synthetic */ WidgetOauth2AuthorizeSamsung this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetOauth2AuthorizeSamsung$samsungCallbackHandshake$2(WidgetOauth2AuthorizeSamsung widgetOauth2AuthorizeSamsung, Continuation continuation) {
|
|
|
|
super(2, continuation);
|
|
|
|
this.this$0 = widgetOauth2AuthorizeSamsung;
|
|
|
|
}
|
|
|
|
|
2021-08-25 07:02:36 +00:00
|
|
|
@Override // d0.w.i.a.a
|
2021-08-03 07:33:18 +00:00
|
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
|
|
m.checkNotNullParameter(continuation, "completion");
|
|
|
|
return new WidgetOauth2AuthorizeSamsung$samsungCallbackHandshake$2(this.this$0, continuation);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
|
|
|
return ((WidgetOauth2AuthorizeSamsung$samsungCallbackHandshake$2) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
|
|
|
|
}
|
|
|
|
|
2021-08-25 07:02:36 +00:00
|
|
|
@Override // d0.w.i.a.a
|
2021-08-03 07:33:18 +00:00
|
|
|
public final Object invokeSuspend(Object obj) {
|
|
|
|
c.getCOROUTINE_SUSPENDED();
|
|
|
|
if (this.label == 0) {
|
|
|
|
l.throwOnFailure(obj);
|
2021-08-13 06:23:11 +00:00
|
|
|
c.a.d.m.i(this.this$0, R.string.authorized, 0, 4);
|
2021-08-03 07:33:18 +00:00
|
|
|
AppActivity appActivity = this.this$0.getAppActivity();
|
|
|
|
if (appActivity == null) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
appActivity.finish();
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
|
|
}
|
|
|
|
}
|