正在查看: RummyCircle v11000.89 应用的 OpenIntentTransactionActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: RummyCircle v11000.89 应用的 OpenIntentTransactionActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.phonepe.intent.sdk.ui;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import com.phonepe.intent.sdk.api.TransactionRequest;
import com.phonepe.intent.sdk.bridges.BridgeHandler;
import gvumm.f;
import kotlin.jvm.internal.Intrinsics;
import npzhg.m;
import org.json.JSONObject;
import wlgrx.h;
import wlgrx.n;
import wlgrx.o;
public class OpenIntentTransactionActivity extends Activity implements m {
public static final String i = Activity.class.getName();
public chmha.a a;
public TransactionRequest b;
public o c;
public krrvc.d d;
public f e;
public chmha.c f;
public String g;
public int h = 0;
public final void a(String str) {
n e = this.f.e(str);
e.b(uauho.d.b, "sdkFlowType");
e.b(this.g, "openIntentWithApp");
this.f.a(e);
}
public final void d(String str) {
f fromJsonString = h.fromJsonString(str, this.a, f.class);
this.e = fromJsonString;
if (fromJsonString == null) {
n e = this.f.e("SDK_NETWORK_ERROR");
e.b(uauho.d.b, "sdkFlowType");
e.b(this.g, "openIntentWithApp");
e.b(str, "errorMessage");
this.f.a(e);
Intent intent = new Intent();
intent.putExtra("key_txn_result", this.a.a("NETWORK_ERROR").toJsonString());
setResult(0, intent);
finish();
return;
}
if (this.g != null) {
Intent intent2 = new Intent();
intent2.setAction("android.intent.action.VIEW");
intent2.setPackage(this.g);
intent2.setData(Uri.parse((String) h.get((JSONObject) this.e.get("data"), "redirectURL")));
try {
startActivityForResult(intent2, 8888);
a("SDK_CUSTOM_OPEN_INTENT_APP_INVOKE_SUCCESS");
} catch (Exception unused) {
a("SDK_CUSTOM_OPEN_INTENT_APP_INVOKE_FAILED");
}
}
}
public final void m(int i2, String str) {
String str2 = i;
String str3 = "onFailure: " + str;
Intrinsics.checkNotNullParameter(str2, "tag");
Intrinsics.checkNotNullParameter(str3, BridgeHandler.MESSAGE);
jmjou.a.b(str2, str3);
n e = this.f.e("SDK_NETWORK_ERROR");
e.b(uauho.d.b, "sdkFlowType");
e.b(this.g, "openIntentWithApp");
e.b(str, "errorMessage");
this.f.a(e);
if (this.h >= 3) {
a("SDK_CUSTOM_OPEN_INTENT_RETRY_LIMIT_EXCEEDED");
Intent intent = new Intent();
intent.putExtra("key_txn_result", this.a.a("RETRY_LIMIT_EXCEEDED").toJsonString());
setResult(0, intent);
finish();
return;
}
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(com.phonepe.intent.sdk.d.error_message).setCancelable(false);
builder.setPositiveButton((CharSequence) "Retry", (DialogInterface.OnClickListener) new com.cashfree.pg.core.api.ui.o(this, 1)).setNegativeButton("Close", new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i3) {
String str4 = OpenIntentTransactionActivity.i;
OpenIntentTransactionActivity openIntentTransactionActivity = OpenIntentTransactionActivity.this;
openIntentTransactionActivity.getClass();
Intent intent2 = new Intent();
intent2.putExtra("key_txn_result", openIntentTransactionActivity.a.a("FAILED").toJsonString());
openIntentTransactionActivity.setResult(0, intent2);
openIntentTransactionActivity.finish();
dialogInterface.dismiss();
}
});
AlertDialog create = builder.create();
if (isDestroyed() || isFinishing()) {
return;
}
create.show();
create.getButton(-2).setTextColor(getResources().getColor(com.phonepe.intent.sdk.a.colorText));
create.getButton(-1).setTextColor(getResources().getColor(com.phonepe.intent.sdk.a.colorText));
}
@Override
public final void onActivityResult(int i2, int i3, Intent intent) {
if (i2 == 8888) {
setResult(i3, intent);
finish();
}
}
@Override
public final void onBackPressed() {
a("SDK_BACK_BUTTON_CLICKED");
Intent intent = new Intent();
intent.putExtra("key_txn_result", this.a.a("USER_CANCEL").toJsonString());
setResult(0, intent);
finish();
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
if (bundle != null) {
this.a = bundle.getParcelable("data_factory");
this.e = bundle.getParcelable("redirect_response");
this.b = (TransactionRequest) bundle.getParcelable("request");
this.c = bundle.getParcelable("sdk_context");
this.g = bundle.getString("openIntentWithApp");
this.f = this.a.c(chmha.c.class);
this.d = this.a.c(krrvc.d.class);
return;
}
if (getIntent() == null || getIntent().getExtras() == null || this.e != null) {
return;
}
this.a = getIntent().getParcelableExtra("data_factory");
this.g = getIntent().getStringExtra("openIntentWithApp");
this.b = (TransactionRequest) getIntent().getParcelableExtra("request");
this.c = getIntent().getParcelableExtra("sdk_context");
this.d = this.a.c(krrvc.d.class);
this.f = this.a.c(chmha.c.class);
this.d.a(this.b, this.c, this);
a("SDK_CUSTOM_OPEN_INTENT_ACTIVITY_STARTED");
}
@Override
public final void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
bundle.putParcelable("sdk_context", this.c);
bundle.putParcelable("data_factory", this.a);
bundle.putParcelable("redirect_response", this.e);
bundle.putParcelable("request", this.b);
bundle.putString("openIntentWithApp", this.g);
}
}