正在查看: OLX India v19.42.007 应用的 ProfileActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 ProfileActivity.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.olxgroup.panamera.app.common.infra.m2;
import com.olxgroup.panamera.app.users.profile.fragments.MyProfileFragment;
import com.olxgroup.panamera.app.users.profile.fragments.OtherProfileFragmentV2;
import com.olxgroup.panamera.data.common.Constants;
import com.olxgroup.panamera.domain.monetization.utils.AdvertisingExtentionKt;
import com.olxgroup.panamera.domain.users.common.entity.User;
import com.olxgroup.panamera.domain.users.profile.presentation_contract.ProfileContract;
import com.olxgroup.panamera.domain.users.profile.presentation_impl.ProfilePresenter;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
@Metadata
public final class ProfileActivity extends f implements ProfileContract.IView {
public static final a j0 = new a(null);
public static final int k0 = 8;
public ProfilePresenter i0;
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Intent a() {
Intent intent = new Intent((Context) m2.a.w1(), (Class<?>) ProfileActivity.class);
intent.putExtra("authenticatedActivity", true);
return intent;
}
public final Intent b(User user) {
Intent intent = new Intent((Context) m2.a.w1(), (Class<?>) ProfileActivity.class);
intent.putExtra("userExtra", user);
return intent;
}
public final Intent c(String str) {
Intent intent = new Intent((Context) m2.a.w1(), (Class<?>) ProfileActivity.class);
intent.putExtra(Constants.USER_ID, str);
return intent;
}
private a() {
}
}
public static final Intent p3() {
return j0.a();
}
public static final Intent q3(User user) {
return j0.b(user);
}
protected int N2() {
return com.olx.southasia.e.neutral_10;
}
@Override
public User getUser() {
if (getIntent().hasExtra("userExtra")) {
return (User) getIntent().getSerializableExtra("userExtra");
}
return null;
}
@Override
public String getUserId() {
if (getIntent().hasExtra(Constants.USER_ID)) {
return getIntent().getStringExtra(Constants.USER_ID);
}
return null;
}
@Override
public void initMyProfileFragment() {
b3(new MyProfileFragment(), true);
}
@Override
public void initOtherProfileFragment() {
b3(new OtherProfileFragmentV2(), true);
}
public final void o3() {
ProfilePresenter profilePresenter = this.i0;
if (profilePresenter != null) {
profilePresenter.showProperFragment();
}
}
protected void onActivityResult(int i, int i2, Intent intent) {
ProfilePresenter profilePresenter;
super/*com.olxgroup.panamera.app.common.activities.c*/.onActivityResult(i, i2, intent);
if (com.olxgroup.panamera.app.common.activities.c.p2(i) && i2 == -1 && (profilePresenter = this.i0) != null) {
profilePresenter.start();
}
Fragment o0 = getSupportFragmentManager().o0(com.olx.southasia.i.container);
if (o0 != null) {
o0.onActivityResult(i, i2, intent);
}
}
protected void onCreate(Bundle bundle) {
ProfilePresenter profilePresenter;
super.onCreate(bundle);
ProfilePresenter profilePresenter2 = this.i0;
if (profilePresenter2 != null) {
profilePresenter2.setView(this);
}
if (bundle != null || (profilePresenter = this.i0) == null) {
return;
}
profilePresenter.start();
}
@Override
public void setUpActionBar() {
M2().setTitle("");
n3(true);
}
protected String t2() {
return AdvertisingExtentionKt.ADVERTISING_PROFILE;
}
}