正在查看: OVO v3.139.0 应用的 PayLaterHomePageActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 PayLaterHomePageActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ovo.id.finserv.paylater.ui.presentation;
import android.os.Bundle;
import android.view.MenuItem;
import android.webkit.WebSettings;
import android.webkit.WebView;
import androidx.activity.ComponentActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.ViewModelKt;
import androidx.lifecycle.ViewModelLazy;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import kotlin.Metadata;
import o.i.Function110;
import o.i.c27;
import o.i.fv2;
import o.i.fxa;
import o.i.j6c;
import o.i.lg2;
import o.i.oid;
import o.i.p1g;
import o.i.pvm;
import o.i.pw5;
import o.i.q0f;
import o.i.rig;
import o.i.s1b;
import o.i.sh2;
import o.i.sid;
import o.i.sk3;
import o.i.t1b;
import o.i.u1b;
import o.i.ua8;
import o.i.v11;
import o.i.v1b;
import o.i.va;
import o.i.vk7;
import o.i.vuc;
import o.i.vx0;
import o.i.xq2;
import o.i.z8;
import o.i.ze7;
import o.i.zf2;
import o.i.zu5;
import ovo.id.base.BaseActivity;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lovo/id/finserv/paylater/ui/presentation/PayLaterHomePageActivity;", "Lovo/id/base/BaseActivity;", "<init>", "()V", "paylater-ui_release"}, k = 1, mv = {1, 8, 0})
public final class PayLaterHomePageActivity extends BaseActivity {
public static final int K = 0;
public sid G;
public ViewModelProvider.Factory H;
public final ViewModelLazy I = new ViewModelLazy(vuc.a(v1b.class), new d(this), new f(), new e(this));
public va J;
public class a extends pw5 implements Function110<String, p1g> {
public a(Object obj) {
super(1, obj, PayLaterHomePageActivity.class, "setPageTitle", "setPageTitle(Ljava/lang/String;)V", 0);
}
public final Object invoke(Object obj) {
String str = (String) obj;
PayLaterHomePageActivity payLaterHomePageActivity = (PayLaterHomePageActivity) ((v11) this).receiver;
if (str != null) {
va vaVar = payLaterHomePageActivity.J;
if (vaVar == null) {
vk7.m("binding");
throw null;
}
vaVar.f1398u.setTitle(str);
} else {
int i = PayLaterHomePageActivity.K;
payLaterHomePageActivity.getClass();
}
return p1g.a;
}
}
public class b extends pw5 implements Function110<String, p1g> {
public b(Object obj) {
super(1, obj, PayLaterHomePageActivity.class, "loadUrl", "loadUrl(Ljava/lang/String;)V", 0);
}
public final Object invoke(Object obj) {
String str = (String) obj;
vk7.f(str, "p0");
va vaVar = ((PayLaterHomePageActivity) ((v11) this).receiver).J;
if (vaVar != null) {
vaVar.f1399v.loadUrl(str);
return p1g.a;
}
vk7.m("binding");
throw null;
}
}
public class c extends pw5 implements zu5<p1g> {
public c(Object obj) {
super(0, obj, PayLaterHomePageActivity.class, "closeActivity", "closeActivity()V", 0);
}
public final Object invoke() {
((PayLaterHomePageActivity) ((v11) this).receiver).B0();
return p1g.a;
}
}
public static final class d extends ua8 implements zu5<ViewModelStore> {
public final ComponentActivity b;
public d(ComponentActivity componentActivity) {
super(0);
this.b = componentActivity;
}
public final Object invoke() {
return this.b.getViewModelStore();
}
}
public static final class e extends ua8 implements zu5<sh2> {
public final ComponentActivity b;
public e(ComponentActivity componentActivity) {
super(0);
this.b = componentActivity;
}
public final Object invoke() {
return this.b.getDefaultViewModelCreationExtras();
}
}
public static final class f extends ua8 implements zu5<ViewModelProvider.Factory> {
public f() {
super(0);
}
public final Object invoke() {
ViewModelProvider.Factory factory = PayLaterHomePageActivity.this.H;
if (factory != null) {
return factory;
}
vk7.m("factory");
throw null;
}
}
public final void G0() {
xq2 xq2Var = sk3.b;
if (xq2Var == null) {
vk7.m("component");
throw null;
}
sid F = xq2Var.a.F();
pvm.p(F);
this.G = F;
this.H = new rig(c27.g(v1b.class, xq2Var.b));
}
public final void M0() {
p1g p1gVar;
va vaVar = this.J;
if (vaVar == null) {
vk7.m("binding");
throw null;
}
WebView webView = vaVar.f1399v;
if (!webView.canGoBack()) {
webView = null;
}
if (webView != null) {
webView.goBack();
p1gVar = p1g.a;
} else {
p1gVar = null;
}
if (p1gVar == null) {
if (!isTaskRoot()) {
E0();
return;
}
sid sidVar = this.G;
if (sidVar != null) {
q0f.u(this, sidVar.c(this, new oid.x((Bundle) null)), false, 6);
} else {
vk7.m("screenRouter");
throw null;
}
}
}
public final void onBackPressed() {
M0();
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
ViewModelLazy viewModelLazy = this.I;
v1b v1bVar = (v1b) viewModelLazy.getValue();
vx0.t(this, new fxa(v1bVar.q, new a(this)));
vx0.t(this, new fxa(v1bVar.r, new b(this)));
vx0.u(this, new fxa(v1bVar.s, new c(this)));
ViewDataBinding c2 = fv2.c(this, j6c.activity_pay_later_home_page);
vk7.e(c2, "setContentView(this, R.l…vity_pay_later_home_page)");
va vaVar = (va) c2;
this.J = vaVar;
vaVar.w(this);
vaVar.B((v1b) viewModelLazy.getValue());
Toolbar toolbar = vaVar.f1398u;
vk7.e(toolbar, "it");
z8.g(this, toolbar, (r14 & 2) != 0, (r14 & 4) != 0, (r14 & 8) != 0 ? null : null, (r14 & 16) != 0 ? null : null);
setTitle("");
va vaVar2 = this.J;
if (vaVar2 == null) {
vk7.m("binding");
throw null;
}
WebView webView = vaVar2.f1399v;
WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);
v1b v1bVar2 = (v1b) viewModelLazy.getValue();
v1bVar2.getClass();
webView.setWebChromeClient(new s1b(v1bVar2));
v1b v1bVar3 = (v1b) viewModelLazy.getValue();
v1bVar3.getClass();
webView.setWebViewClient(new t1b(v1bVar3));
v1b v1bVar4 = (v1b) viewModelLazy.getValue();
v1bVar4.getClass();
ze7.m(ViewModelKt.getViewModelScope(v1bVar4), (zf2) null, (lg2) null, new u1b(v1bVar4, null), 3);
}
public final boolean onOptionsItemSelected(MenuItem menuItem) {
vk7.f(menuItem, "item");
if (menuItem.getItemId() == 16908332) {
M0();
}
return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
}
}