正在查看: OVO v3.139.0 应用的 WebviewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 WebviewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ovo.id.webview.presentation.base;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import kotlin.Metadata;
import o.i.Function23;
import o.i.akb;
import o.i.av;
import o.i.b97;
import o.i.ce;
import o.i.d8c;
import o.i.fqe;
import o.i.g00;
import o.i.gle;
import o.i.hg2;
import o.i.jg2;
import o.i.lo5;
import o.i.lwe;
import o.i.n0a;
import o.i.p0a;
import o.i.p1g;
import o.i.p2d;
import o.i.pvm;
import o.i.q0f;
import o.i.s23;
import o.i.sid;
import o.i.td2;
import o.i.tid;
import o.i.tl1;
import o.i.tz9;
import o.i.uu2;
import o.i.v53;
import o.i.vk7;
import o.i.vuc;
import o.i.y5c;
import o.i.ync;
import o.i.yy9;
import o.i.ze7;
import o.i.zi3;
import ovo.id.base.BaseActivity;
import ovo.id.base.utils.StringWrapper;
import ovo.id.user.notification.domain.entity.model.payload.PushNotificationPayload;
import ovo.id.user.notification.domain.entity.model.payload.WebviewPayload;
import ovo.id.webview.domain.model.WebviewPage;
import retrofit2.Retrofit;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lovo/id/webview/presentation/base/WebviewActivity;", "Lovo/id/webview/presentation/base/BaseWebviewActivity;", "<init>", "()V", "a", "ovo-webview_release"}, k = 1, mv = {1, 8, 0})
public final class WebviewActivity extends BaseWebviewActivity {
public static final int S = 0;
public sid G;
public akb H;
public ync I;
public zi3 J;
public boolean K = true;
public WebviewPage L;
public String M;
public StringWrapper N;
public Bundle O;
public String P;
public boolean Q;
public ce R;
public static final class a {
public static Intent a(Context context, WebviewPage webviewPage) {
vk7.f(context, "context");
vk7.f(webviewPage, "webviewPage");
Intent intent = new Intent(context, (Class<?>) WebviewActivity.class);
intent.putExtra("webview_page", webviewPage);
return intent;
}
}
@s23(c = "ovo.id.webview.presentation.base.WebviewActivity$onCreate$1$2$1", f = "WebviewActivity.kt", l = {109}, m = "invokeSuspend")
public static final class b extends lwe implements Function23<hg2, td2<? super p1g>, Object> {
public int b;
public final String d;
@s23(c = "ovo.id.webview.presentation.base.WebviewActivity$onCreate$1$2$1$1", f = "WebviewActivity.kt", l = {110}, m = "invokeSuspend")
public static final class a extends lwe implements Function23<hg2, td2<? super p1g>, Object> {
public int b;
public final WebviewActivity c;
public final String d;
public a(WebviewActivity webviewActivity, String str, td2<? super a> td2Var) {
super(2, td2Var);
this.c = webviewActivity;
this.d = str;
}
public final td2<p1g> create(Object obj, td2<?> td2Var) {
return new a(this.c, this.d, td2Var);
}
public final Object invoke(Object obj, Object obj2) {
return create((hg2) obj, (td2) obj2).invokeSuspend(p1g.a);
}
public final Object invokeSuspend(Object obj) {
jg2 jg2Var = jg2.COROUTINE_SUSPENDED;
int i = this.b;
if (i == 0) {
p2d.b(obj);
ync yncVar = this.c.I;
if (yncVar == null) {
vk7.m("readNotificationUseCase");
throw null;
}
String str = this.d;
vk7.e(str, "notificationId");
this.b = 1;
if (yncVar.a(str, this) == jg2Var) {
return jg2Var;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
p2d.b(obj);
}
return p1g.a;
}
}
public b(String str, td2<? super b> td2Var) {
super(2, td2Var);
this.d = str;
}
public final td2<p1g> create(Object obj, td2<?> td2Var) {
return WebviewActivity.this.new b(this.d, td2Var);
}
public final Object invoke(Object obj, Object obj2) {
return create((hg2) obj, (td2) obj2).invokeSuspend(p1g.a);
}
public final Object invokeSuspend(Object obj) {
jg2 jg2Var = jg2.COROUTINE_SUSPENDED;
int i = this.b;
if (i == 0) {
p2d.b(obj);
WebviewActivity webviewActivity = WebviewActivity.this;
zi3 zi3Var = webviewActivity.J;
if (zi3Var == null) {
vk7.m("dispatcherProvider");
throw null;
}
v53 c = zi3Var.c();
a aVar = new a(webviewActivity, this.d, null);
this.b = 1;
if (ze7.y(this, c, aVar) == jg2Var) {
return jg2Var;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
p2d.b(obj);
}
return p1g.a;
}
}
public final void E0() {
lo5 lo5Var = ((BaseActivity) this).C;
Integer valueOf = lo5Var != null ? Integer.valueOf(lo5Var.F()) : null;
vk7.c(valueOf);
if (valueOf.intValue() > 0) {
C0();
return;
}
B0();
if (this.L instanceof WebviewPage.MaintenancePage) {
akb akbVar = this.H;
if (akbVar != null) {
akbVar.b(vuc.a(gle.class)).y(false);
} else {
vk7.m("preferenceManager");
throw null;
}
}
}
public final void G0() {
uu2 uu2Var = av.b;
if (uu2Var == null) {
vk7.m("webviewComponent");
throw null;
}
g00 g00Var = uu2Var.a;
sid F = g00Var.F();
pvm.p(F);
this.G = F;
akb H = g00Var.H();
pvm.p(H);
this.H = H;
Retrofit J = g00Var.J();
pvm.p(J);
n0a n0aVar = new n0a(new yy9(b97.a(uu2Var.b, J)), new p0a());
zi3 f = g00Var.f();
pvm.p(f);
this.I = new ync(n0aVar, f);
zi3 f2 = g00Var.f();
pvm.p(f2);
this.J = f2;
}
@Override
public final Toolbar N0() {
ce ceVar = this.R;
if (ceVar != null) {
return ceVar.f168u;
}
vk7.m("binding");
throw null;
}
public final WebviewPayload Q0() {
Intent intent = getIntent();
vk7.e(intent, "intent");
String l = tl1.l(intent);
if (l != null) {
tz9.a.getClass();
PushNotificationPayload a2 = tz9.a(l);
String routeType = a2 != null ? a2.getRouteType() : null;
if (routeType == null) {
routeType = "";
}
if (fqe.x(routeType, "GENERAL||WEBVIEW", true)) {
vk7.d(a2, "null cannot be cast to non-null type ovo.id.user.notification.domain.entity.model.payload.WebviewPayload");
return (WebviewPayload) a2;
}
}
return null;
}
public final void onBackPressed() {
p1g p1gVar = null;
if (isTaskRoot()) {
sid sidVar = this.G;
if (sidVar != null) {
tid.b(sidVar, this, (Bundle) null);
return;
} else {
vk7.m("screenRouter");
throw null;
}
}
lo5 lo5Var = ((BaseActivity) this).C;
Fragment C = lo5Var != null ? lo5Var.C(y5c.fl_container) : null;
WebviewFragment webviewFragment = C instanceof WebviewFragment ? (WebviewFragment) C : null;
if (webviewFragment != null) {
webviewFragment.s0();
p1gVar = p1g.a;
}
if (p1gVar == null) {
super.onBackPressed();
}
}
public final void onCreate(android.os.Bundle r18) {
throw new UnsupportedOperationException("Method not decompiled: ovo.id.webview.presentation.base.WebviewActivity.onCreate(android.os.Bundle):void");
}
public final boolean onCreateOptionsMenu(Menu menu) {
vk7.f(menu, "menu");
String str = this.P;
if (!(str == null || fqe.A(str))) {
getMenuInflater().inflate(d8c.menu_pay_later, menu);
}
return super/*android.app.Activity*/.onCreateOptionsMenu(menu);
}
public final boolean onOptionsItemSelected(MenuItem menuItem) {
vk7.f(menuItem, "item");
int itemId = menuItem.getItemId();
if (itemId == 16908332) {
onBackPressed();
} else {
if (itemId != y5c.i_faq) {
return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
}
Intent intent = new Intent((Context) this, (Class<?>) WebviewActivity.class);
intent.putExtra("webview_url", this.P);
q0f.u(this, intent, false, 6);
}
return true;
}
}