正在查看: OLX India v19.42.007 应用的 ProfileCompletionActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 ProfileCompletionActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.olxgroup.panamera.app.users.profile.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import com.mediapicker.gallery.presentation.fragments.HomeFragment;
import com.olxgroup.panamera.app.common.infra.m2;
import com.olxgroup.panamera.app.common.utils.c1;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionAddAboutFragment;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionAddEmailFragment;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionAddNameFragment;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionAddPhoneFragment;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionAddPictureFragment;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionConnectionsFragment;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionEmailValidationFragment;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionPhoneValidationFragment;
import com.olxgroup.panamera.app.users.profile.fragments.ProfileCompletionSuccessFragment;
public class ProfileCompletionActivity extends g implements com.olxgroup.panamera.app.users.profile.a, olx.com.delorean.view.auth.a, com.olxgroup.panamera.app.users.linkaccount.b {
private void finishResultOk() {
J2();
setResult(-1);
finish();
}
public static Intent o3(String str, boolean z) {
Intent intent = new Intent((Context) m2.b, (Class<?>) ProfileCompletionActivity.class);
intent.putExtra("profile_completion_step", str);
if (z) {
intent.putExtra("is_from_registration", true);
}
return intent;
}
public static Intent p3(String str) {
return o3(str, false);
}
public static Intent q3(String str) {
return o3(str, true);
}
private Fragment r3(String str) {
if (str == null) {
return new ProfileCompletionSuccessFragment();
}
switch (str) {
case "valid_email":
return new ProfileCompletionAddEmailFragment();
case "valid_phone":
return new ProfileCompletionAddPhoneFragment();
case "phone_validation":
return new ProfileCompletionPhoneValidationFragment();
case "has_about":
return new ProfileCompletionAddAboutFragment();
case "has_picture":
return new ProfileCompletionAddPictureFragment();
case "email_validation":
return new ProfileCompletionEmailValidationFragment();
case "valid_social_account":
return new ProfileCompletionConnectionsFragment();
default:
return new ProfileCompletionAddNameFragment();
}
}
private String s3() {
Bundle extras = getIntent().getExtras();
if (extras == null || !extras.containsKey("profile_completion_step")) {
return null;
}
return extras.getString("profile_completion_step");
}
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);
}
public void W0() {
finish();
}
@Override
public void f(String str) {
J2();
if (t3() && str == null) {
finish();
} else {
k3(r3(str));
}
}
public void finishAuthenticationFlow() {
J2();
setResult(-1);
finish();
}
@Override
public void finishProfileCompletionFlow() {
finish();
}
@Override
public void hideLoading() {
Q2();
}
protected void onActivityResult(int i, int i2, Intent intent) {
super/*com.olxgroup.panamera.app.common.activities.c*/.onActivityResult(i, i2, intent);
Fragment o0 = getSupportFragmentManager().o0(com.olx.southasia.i.container);
if (o0 != null) {
o0.onActivityResult(i, i2, intent);
}
}
public void onBackPressed() {
Fragment o0 = getSupportFragmentManager().o0(K2());
if ((o0 instanceof HomeFragment) || (o0 instanceof ProfileCompletionPhoneValidationFragment) || (o0 instanceof ProfileCompletionEmailValidationFragment)) {
super.onBackPressed();
}
}
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
a3();
P2();
if (bundle == null) {
b3(r3(s3()), false);
}
}
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();
}
@Override
public void showLoading() {
j3();
}
public boolean t3() {
Bundle extras = getIntent().getExtras();
if (extras == null || !extras.containsKey("is_from_registration")) {
return false;
}
return extras.getBoolean("is_from_registration", false);
}
public void v(Fragment fragment) {
super.v(fragment);
}
}