正在查看: OVO v3.139.0 应用的 EditProfileOTPVerificationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 EditProfileOTPVerificationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ovo.id.user.profile.presentation.editprofile;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.MenuItem;
import androidx.appcompat.widget.Toolbar;
import kotlin.Metadata;
import o.i.dac;
import o.i.e7c;
import o.i.fm2;
import o.i.fqe;
import o.i.fv2;
import o.i.fxa;
import o.i.hkc;
import o.i.im8;
import o.i.l5c;
import o.i.oye;
import o.i.pvm;
import o.i.r20;
import o.i.r8;
import o.i.rs2;
import o.i.sid;
import o.i.snk;
import o.i.tid;
import o.i.ua8;
import o.i.vk7;
import o.i.z8;
import o.i.zu5;
import ovo.id.base.BaseActivity;
import ovo.id.core.constant.VerificationType;
import ovo.id.user.profile.domain.entity.model.EditProfileData;
import ovo.id.user.profile.domain.entity.model.OtpReference;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lovo/id/user/profile/presentation/editprofile/EditProfileOTPVerificationActivity;", "Lovo/id/base/BaseActivity;", "<init>", "()V", "a", "profile-ui_release"}, k = 1, mv = {1, 8, 0})
public final class EditProfileOTPVerificationActivity extends BaseActivity {
public static final int P = 0;
public sid G;
public EditProfileOTPVerificationFragment I;
public EditProfileData J;
public OtpReference L;
public String M;
public String N;
public boolean O;
public final oye H = im8.b(new b());
public VerificationType K = VerificationType.PHONE_VERIFICATION;
public static final class a {
public static Intent a(Context context, String str, String str2, VerificationType verificationType, OtpReference otpReference, String str3, boolean z, boolean z3) {
vk7.f(context, "context");
vk7.f(str, "currentValue");
vk7.f(str2, "newValue");
vk7.f(verificationType, "verificationType");
return z8.c(context, EditProfileOTPVerificationActivity.class, new fxa[]{new fxa("customer", new EditProfileData(str, str2)), new fxa("extra_verification_type", verificationType.name()), new fxa("otpReference", otpReference), new fxa("singleUseToken", str3), new fxa("isUseSessionToken", Boolean.valueOf(z)), new fxa("isSelfChangePhoneNumber", Boolean.valueOf(z3))});
}
}
public static final class b extends ua8 implements zu5<r8> {
public b() {
super(0);
}
public final Object invoke() {
return (r8) fv2.c(EditProfileOTPVerificationActivity.this, e7c.activity_edit_profile_otp_verification);
}
}
static {
new a();
}
public final void G0() {
rs2 rs2Var = r20.k;
if (rs2Var == null) {
vk7.m("profileComponent");
throw null;
}
sid F = new fm2(new snk(), new hkc(), rs2Var).a.F();
pvm.p(F);
this.G = F;
}
public final void onCreate(Bundle bundle) {
EditProfileData editProfileData;
super.onCreate(bundle);
oye oyeVar = this.H;
Object value = oyeVar.getValue();
vk7.e(value, "<get-binding>(...)");
((r8) value).w(this);
if (bundle != null && bundle.containsKey("customer")) {
editProfileData = (EditProfileData) bundle.getParcelable("customer");
} else {
Intent intent = getIntent();
if (!(intent != null && intent.hasExtra("customer"))) {
sid sidVar = this.G;
if (sidVar == null) {
vk7.m("screenRouter");
throw null;
}
tid.a(this, sidVar);
finish();
return;
}
editProfileData = (EditProfileData) getIntent().getParcelableExtra("customer");
}
this.J = editProfileData;
Intent intent2 = getIntent();
if (intent2 != null) {
String action = intent2.getAction();
if (!(action == null || action.length() == 0) && fqe.x(intent2.getAction(), "android.intent.action.VIEW", true)) {
Uri data = intent2.getData();
this.M = data != null ? data.getQueryParameter("verificationCode") : null;
}
String stringExtra = intent2.getStringExtra("extra_verification_type");
if (stringExtra == null) {
stringExtra = VerificationType.PHONE_VERIFICATION.name();
}
vk7.e(stringExtra, "getStringExtra(EXTRA_VER…e.PHONE_VERIFICATION.name");
this.K = VerificationType.valueOf(stringExtra);
this.L = (OtpReference) intent2.getParcelableExtra("otpReference");
this.N = intent2.getStringExtra("singleUseToken");
this.O = intent2.getBooleanExtra("isUseSessionToken", false);
boolean booleanExtra = intent2.getBooleanExtra("isSelfChangePhoneNumber", false);
VerificationType verificationType = this.K;
int i = EditProfileOTPVerificationFragment.f1843w;
EditProfileData editProfileData2 = this.J;
String str = this.M;
OtpReference otpReference = this.L;
String str2 = this.N;
boolean z = this.O;
vk7.f(verificationType, "verificationType");
EditProfileOTPVerificationFragment editProfileOTPVerificationFragment = new EditProfileOTPVerificationFragment();
Bundle bundle2 = new Bundle();
bundle2.putParcelable("arg_key", editProfileData2);
bundle2.putString("extra_verification_type", verificationType.name());
if (!(str == null || fqe.A(str))) {
bundle2.putString("verification_code", str);
}
if (otpReference != null) {
bundle2.putParcelable("otpReference", otpReference);
}
if (str2 != null) {
bundle2.putString("singleUseToken", str2);
}
bundle2.putBoolean("isUseSessionToken", z);
bundle2.putBoolean("isSelfChangePhoneNumber", booleanExtra);
editProfileOTPVerificationFragment.setArguments(bundle2);
this.I = editProfileOTPVerificationFragment;
int i2 = dac.empty_string;
Object value2 = oyeVar.getValue();
vk7.e(value2, "<get-binding>(...)");
Toolbar toolbar = ((r8) value2).f1159u;
vk7.e(toolbar, "binding.toolbar");
z8.g(this, toolbar, (r14 & 2) != 0 ? true : true, (r14 & 4) != 0 ? true : true, (r14 & 8) != 0 ? null : Integer.valueOf(i2), (r14 & 16) != 0 ? null : null);
z8.o(this, l5c.fl_container, this.I, false, 12);
}
}
public final void onNewIntent(Intent intent) {
EditProfileOTPVerificationFragment editProfileOTPVerificationFragment;
vk7.f(intent, "intent");
super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
String action = intent.getAction();
if (!(action == null || action.length() == 0) && fqe.x(intent.getAction(), "android.intent.action.VIEW", true) && this.K == VerificationType.EMAIL_VERIFICATION) {
Uri data = intent.getData();
String queryParameter = data != null ? data.getQueryParameter("verificationCode") : null;
this.M = queryParameter;
if (queryParameter == null || (editProfileOTPVerificationFragment = this.I) == null) {
return;
}
editProfileOTPVerificationFragment.d0(queryParameter);
}
}
public final boolean onOptionsItemSelected(MenuItem menuItem) {
vk7.f(menuItem, "item");
if (menuItem.getItemId() != 16908332) {
return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
}
onBackPressed();
return true;
}
}