正在查看: OVO v3.139.0 应用的 CommonErrorDialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 CommonErrorDialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ovo.id.common.error.presentation;
import android.content.Intent;
import android.os.Bundle;
import com.google.gson.Gson;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import kotlin.Metadata;
import o.i.agc;
import o.i.b19;
import o.i.bw6;
import o.i.cgc;
import o.i.dgc;
import o.i.ez7;
import o.i.fxa;
import o.i.ggc;
import o.i.j;
import o.i.q89;
import o.i.rx1;
import o.i.sh;
import o.i.sx1;
import o.i.tl2;
import o.i.tx1;
import o.i.uh;
import o.i.ux1;
import o.i.vk7;
import o.i.vx1;
import o.i.xh;
import o.i.xx1;
import o.i.z20;
import o.i.zfc;
import okhttp3.HttpUrl;
import ovo.id.analytics.AnalyticType;
import ovo.id.base.BaseActivity;
import ovo.id.core.models.dynamicerror.Action;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lovo/id/common/error/presentation/CommonErrorDialogActivity;", "Lovo/id/base/BaseActivity;", "<init>", "()V", "ovo-common-error_release"}, k = 1, mv = {1, 8, 0})
public final class CommonErrorDialogActivity extends BaseActivity {
public xx1 G;
public String H;
public String K;
public String I = HttpUrl.FRAGMENT_ENCODE_SET;
public String J = HttpUrl.FRAGMENT_ENCODE_SET;
public boolean L = true;
public static final void M0(CommonErrorDialogActivity commonErrorDialogActivity, Action action) {
commonErrorDialogActivity.getClass();
boolean a = vk7.a(action.getActionUrl(), "doClose");
String str = HttpUrl.FRAGMENT_ENCODE_SET;
if (a) {
commonErrorDialogActivity.finish();
} else {
xx1 N0 = commonErrorDialogActivity.N0();
String actionUrl = action.getActionUrl();
if (actionUrl == null) {
actionUrl = HttpUrl.FRAGMENT_ENCODE_SET;
}
N0.i(commonErrorDialogActivity, actionUrl, null);
}
ez7 tracker = action.getTracker();
if (tracker != null) {
String jy7Var = tracker.A("params").toString();
vk7.e(jy7Var, "it.getAsJsonObject(\"params\").toString()");
String p = tracker.z("type").p();
if (p == null) {
p = HttpUrl.FRAGMENT_ENCODE_SET;
}
Locale locale = Locale.ROOT;
String lowerCase = p.toLowerCase(locale);
vk7.e(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
AnalyticType analyticType = AnalyticType.APPSFLYER;
String lowerCase2 = analyticType.name().toLowerCase(locale);
vk7.e(lowerCase2, "this as java.lang.String).toLowerCase(Locale.ROOT)");
if (!vk7.a(lowerCase, lowerCase2)) {
analyticType = AnalyticType.LEANPLUM_STATE;
String lowerCase3 = analyticType.name().toLowerCase(locale);
vk7.e(lowerCase3, "this as java.lang.String).toLowerCase(Locale.ROOT)");
if (!vk7.a(lowerCase, lowerCase3)) {
analyticType = AnalyticType.LEANPLUM_EVENT;
}
}
String p2 = tracker.z("event_name").p();
if (p2 != null) {
str = p2;
}
uh.a(commonErrorDialogActivity, new xh(analyticType, str, (Map) new Gson().d(jy7Var, new rx1().getType()), 8));
}
}
@Override
public final void G0() {
tl2 tl2Var = bw6.a;
if (tl2Var != null) {
this.G = tl2Var.a;
} else {
vk7.m("commonErrorComponent");
throw null;
}
}
public final xx1 N0() {
xx1 xx1Var = this.G;
if (xx1Var != null) {
return xx1Var;
}
vk7.m("commonErrorListener");
throw null;
}
@Override
public final void onCreate(Bundle bundle) {
Bundle extras;
super.onCreate(bundle);
Intent intent = getIntent();
if (intent != null && (extras = intent.getExtras()) != null) {
N0().o();
String string = extras.getString("notificationId");
if (string != null) {
N0().b(string);
}
N0().l();
String string2 = extras.getString("ovo.id.core.ErrorImage");
if (string2 == null) {
int i = CommonErrorActivity.H;
string2 = "rima_inline_error";
}
this.H = string2;
N0().d();
String string3 = extras.getString("ovo.id.core.ErrorTitle");
if (string3 == null) {
string3 = getString(CommonErrorActivity.H);
vk7.e(string3, "this.getString(\n …FAULT_TITLE\n )");
}
this.I = string3;
N0().h();
String string4 = extras.getString("ovo.id.core.ErrorMessage");
if (string4 == null) {
string4 = getString(CommonErrorActivity.I);
vk7.e(string4, "this.getString(\n …RIPTION\n )");
}
this.J = string4;
N0().j();
extras.getString("ovo.id.core.ButtonLabel");
N0().p();
extras.getString("ovo.id.core.ButtonPage");
N0().e();
this.K = extras.getString("ovo.id.core.MultipleButtonJson");
N0().n();
this.L = extras.getBoolean("ovo.id.core.IsClosable");
}
try {
Object c = new Gson().c(this.K, Action[].class);
vk7.e(c, "Gson().fromJson(multiple…rray<Action>::class.java)");
List Q = z20.Q((Object[]) c);
zfc zfcVar = new zfc(this);
zfcVar.p(this.H);
zfcVar.x(this.I);
zfcVar.k(this.J);
zfcVar.r = new sx1(this);
zfcVar.setCancelable(this.L);
int i3 = 0;
for (Object obj : Q) {
int i5 = i3 + 1;
String str = null;
if (i3 < 0) {
sh.O();
throw null;
}
Action action = (Action) obj;
String type = action.getType();
if (type != null) {
str = type.toLowerCase(Locale.ROOT);
vk7.e(str, "this as java.lang.String).toLowerCase(Locale.ROOT)");
}
if (str != null) {
int hashCode = str.hashCode();
String str2 = HttpUrl.FRAGMENT_ENCODE_SET;
if (hashCode != -817598092) {
if (hashCode != -314765822) {
if (hashCode == 98331279 && str.equals("ghost")) {
String title = action.getTitle();
if (title != null) {
str2 = title;
}
zfcVar.m(str2, agc.b);
zfcVar.j().w.setGhostHandler(new cgc(new vx1(this, action), zfcVar));
}
} else if (str.equals("primary")) {
String title2 = action.getTitle();
if (title2 != null) {
str2 = title2;
}
zfcVar.s(str2, dgc.b);
zfcVar.t(new tx1(this, action));
}
} else if (str.equals("secondary")) {
String title3 = action.getTitle();
if (title3 != null) {
str2 = title3;
}
zfcVar.v(str2, ggc.b);
zfcVar.w(new ux1(this, action));
}
}
i3 = i5;
}
zfcVar.show();
} catch (Exception e) {
b19.e(e, q89.s(new fxa("Message", j.a("Failing to initialize button array because ", e.getMessage()))));
}
}
}