iKredit v1.2.0.3版本的 MD5 值为:2c00c5c79eecbd6be4c3c546c28d778d
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.gocashfree.cashfreesdk.c;
import android.R;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.gocashfree.cashfreesdk.CFPaymentService;
import com.gocashfree.cashfreesdk.d.a;
import java.util.HashMap;
public class a extends AppCompatActivity {
private static final String e = a.class.getName();
protected com.gocashfree.cashfreesdk.a.a.b.a a;
protected c b;
protected Bundle c;
protected com.gocashfree.cashfreesdk.a.b.c d;
public class DialogInterfaceOnClickListenerC0032a implements DialogInterface.OnClickListener {
DialogInterfaceOnClickListenerC0032a() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
a aVar = a.this;
aVar.b.a(aVar);
a.super.onBackPressed();
a.this.d.a(a.EnumC0034a.NAV_BACK_EXIT);
a.this.c(a.c.CANCELLED.toString());
}
}
public class b implements com.gocashfree.cashfreesdk.a.c.a.a {
b(a aVar) {
}
@Override
public void a(String str) {
com.gocashfree.cashfreesdk.d.c.a(a.e, "Analytics Error: " + str);
}
}
protected int b() {
return ((Integer) this.a.a("orientation", 0)).intValue();
}
protected String c() {
return this.c.getString("stage", "PROD");
}
public void d() {
new AlertDialog.Builder(this).setIcon(R.drawable.ic_dialog_alert).setTitle("Exiting payment").setMessage("Are you sure you want to exit payment?").setPositiveButton("Yes", new DialogInterfaceOnClickListenerC0032a()).setNegativeButton("No", (DialogInterface.OnClickListener) null).show();
}
public void e() {
Bundle extras = getIntent().getExtras();
com.gocashfree.cashfreesdk.d.c.a(e, "Getting values from extras bundle");
if (extras == null || extras.isEmpty()) {
return;
}
this.c = extras;
if (extras.containsKey(CFPaymentService.PARAM_ORDER_CURRENCY)) {
return;
}
this.c.putString(CFPaymentService.PARAM_ORDER_CURRENCY, "INR");
}
@Override
public void onBackPressed() {
if (a()) {
d();
} else {
this.b.a(this);
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
com.gocashfree.cashfreesdk.d.c.a(this);
com.gocashfree.cashfreesdk.a.a.b.a aVar = new com.gocashfree.cashfreesdk.a.a.b.a();
this.a = aVar;
aVar.b(this);
if (b() == 0) {
setRequestedOrientation(1);
} else {
setRequestedOrientation(0);
}
e();
this.d = new com.gocashfree.cashfreesdk.a.b.c(this.c.getString(CFPaymentService.PARAM_APP_ID), "1.4.9.4", this.c.getString(CFPaymentService.PARAM_ORDER_ID));
}
@Override
public void onStop() {
super.onStop();
this.a.a(this);
}
protected boolean a() {
return ((Boolean) this.a.a("confirmOnExit", true)).booleanValue();
}
public void c(String str) {
this.d.a(a.EnumC0034a.valueOf(str));
HashMap<String, String> hashMap = new HashMap<>();
hashMap.put("eventLog", this.d.toString());
com.gocashfree.cashfreesdk.d.c.a(e, "Payment events Logged");
new com.gocashfree.cashfreesdk.a.c.a.c().a(this, c(), hashMap, null, new b(this));
}
}