discord-jadx/app/src/main/java/com/discord/widgets/captcha/WidgetCaptchaBottomSheet$Co...

44 lines
1.9 KiB
Java
Raw Normal View History

2021-12-04 21:42:05 +00:00
package com.discord.widgets.captcha;
import android.os.Bundle;
import com.discord.app.AppFragment;
2022-02-21 09:02:28 +00:00
import com.discord.utilities.captcha.CaptchaHelper;
2021-12-04 21:42:05 +00:00
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
/* compiled from: WidgetCaptchaBottomSheet.kt */
public final class WidgetCaptchaBottomSheet$Companion$registerForResult$1 extends o implements Function2<String, Bundle, Unit> {
public final /* synthetic */ AppFragment $fragment;
2022-02-21 09:02:28 +00:00
public final /* synthetic */ Function2 $onCaptchaPayloadReceived;
2021-12-04 21:42:05 +00:00
public final /* synthetic */ String $requestKey;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetCaptchaBottomSheet$Companion$registerForResult$1(String str, Function2 function2, AppFragment appFragment) {
super(2);
this.$requestKey = str;
2022-02-21 09:02:28 +00:00
this.$onCaptchaPayloadReceived = function2;
2021-12-04 21:42:05 +00:00
this.$fragment = appFragment;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public /* bridge */ /* synthetic */ Unit invoke(String str, Bundle bundle) {
invoke(str, bundle);
return Unit.a;
}
public final void invoke(String str, Bundle bundle) {
m.checkNotNullParameter(str, "resultRequestKey");
m.checkNotNullParameter(bundle, "bundle");
2022-02-21 09:02:28 +00:00
if (m.areEqual(this.$requestKey, str)) {
String string = bundle.getString("INTENT_EXTRA_CAPTCHA_TOKEN", "");
String string2 = bundle.getString("INTENT_EXTRA_CAPTCHA_RQTOKEN", "");
if (string != null && (!m.areEqual(string, ""))) {
this.$onCaptchaPayloadReceived.invoke(this.$fragment, new CaptchaHelper.CaptchaPayload(string, string2));
}
2021-12-04 21:42:05 +00:00
}
}
}