正在查看: OLX India v19.42.007 应用的 PhoneVerificationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 PhoneVerificationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.olxgroup.panamera.app.users.linkaccount.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.fragment.app.Fragment;
import com.olx.southasia.i;
import com.olxgroup.panamera.app.common.infra.m2;
import com.olxgroup.panamera.app.common.utils.c1;
import com.olxgroup.panamera.app.users.auth.fragments.ADPVPhoneVerificationFragment;
import com.olxgroup.panamera.app.users.linkaccount.fragments.PhoneVerificationStepOneFragment;
import com.olxgroup.panamera.app.users.linkaccount.fragments.PhoneVerificationStepTwoFragment;
import com.olxgroup.panamera.app.users.linkaccount.fragments.PhoneVerificationStepTwoFragmentV2;
import olx.com.delorean.domain.service.ab.ABTestService;
public class PhoneVerificationActivity extends f implements olx.com.delorean.view.auth.a, com.olxgroup.panamera.app.users.linkaccount.b {
private void finishResultOk() {
J2();
setResult(-1);
finish();
}
public static Intent o3() {
return new Intent((Context) m2.b, (Class<?>) PhoneVerificationActivity.class);
}
public static Intent p3(String str, String str2) {
return q3(str, str2, false);
}
public static Intent q3(String str, String str2, boolean z) {
Intent intent = new Intent((Context) m2.b, (Class<?>) PhoneVerificationActivity.class);
intent.putExtra("phoneVerificationFlow", str);
intent.putExtra("phone", str2);
if (z) {
intent.putExtra("should_generate_otp", z);
}
return intent;
}
public static Intent r3(boolean z, String str) {
Intent intent = new Intent((Context) m2.b, (Class<?>) PhoneVerificationActivity.class);
intent.putExtra("phoneVerificationFlowAdpv", z);
intent.putExtra(ADPVPhoneVerificationFragment.M0, str);
return intent;
}
private Fragment s3() {
return ((ABTestService) m2.a.q1().getValue()).isAutomaticPhoneVerificationEnabled() ? PhoneVerificationStepTwoFragmentV2.i5(getIntent().getStringExtra("phone"), getIntent().getBooleanExtra("should_generate_otp", false), false) : PhoneVerificationStepTwoFragment.h5(getIntent().getStringExtra("phone"), getIntent().getBooleanExtra("should_generate_otp", false));
}
public void D1(String str) {
d3();
M2().setBackgroundColor(getResources().getColor(com.olx.southasia.e.toolbar_background));
M2().setTitle(str);
n3(true);
}
public void E(Fragment fragment) {
J2();
k3(fragment);
}
protected int K2() {
return i.container;
}
public void W0() {
finish();
}
public void finishAuthenticationFlow() {
J2();
setResult(-1);
finish();
}
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
if (!TextUtils.isEmpty(getIntent().getStringExtra("phoneVerificationFlow"))) {
E(s3());
return;
}
if (getIntent().getBooleanExtra("phoneVerificationFlowAdpv", false)) {
b3(ADPVPhoneVerificationFragment.g5(getIntent().getStringExtra(ADPVPhoneVerificationFragment.M0)), false);
} else {
b3(new PhoneVerificationStepOneFragment(), false);
}
g3();
}
public void p() {
a3();
M2().setBackgroundColor(getResources().getColor(com.olx.southasia.e.transparent));
M2().setTitle("");
n3(false);
getSupportActionBar().A(c1.c(this, com.olx.southasia.g.ic_clear, com.olx.southasia.e.textColorPrimaryDark));
}
@Override
public void q() {
super.onBackPressed();
}
@Override
public void s() {
finishResultOk();
}
public void v(Fragment fragment) {
super.v(fragment);
}
}