导航菜单

页面标题

页面副标题

OLX India v19.42.007 - EditProfileActivity.java 源代码

正在查看: OLX India v19.42.007 应用的 EditProfileActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.olxgroup.panamera.app.users.profile.activities;

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.helpers.l;
import com.olxgroup.panamera.app.common.utils.c1;
import com.olxgroup.panamera.app.users.dealerShowroom.ui.EditShowroomFragment;
import com.olxgroup.panamera.app.users.profile.fragments.EditProfileFragment;
import com.olxgroup.panamera.domain.users.showroom.entity.ShowroomType;
import java.io.Serializable;
import kotlin.Metadata;

@Metadata
public final class EditProfileActivity extends c {
    private boolean i0;
    private ShowroomType j0;
    private boolean k0;

    private final void initFragment() {
        if (o3()) {
            if (this.i0) {
                b3(EditShowroomFragment.T0.a(this.j0, this.k0), false);
            } else {
                b3(new EditProfileFragment(), false);
            }
        }
    }

    private final boolean o3() {
        return l.R0();
    }

    private final void p3() {
        Fragment o0 = getSupportFragmentManager().o0(com.olx.southasia.i.container);
        if (o0 instanceof EditProfileFragment) {
            ((EditProfileFragment) o0).canDoOnBackPressed();
            return;
        }
        if (o0 instanceof EditShowroomFragment) {
            ((EditShowroomFragment) o0).canDoOnBackPressed();
        } else if (o0 instanceof HomeFragment) {
            super.onBackPressed();
        } else {
            finish();
        }
    }

    private final void setUpActionBar() {
        androidx.appcompat.app.a supportActionBar;
        if (M2() != null) {
            M2().setTitle("");
        }
        if (getSupportActionBar() == null || (supportActionBar = getSupportActionBar()) == null) {
            return;
        }
        supportActionBar.A(c1.c(this, com.olx.southasia.g.ic_clear, com.olx.southasia.e.textColorPrimaryDark));
    }

    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 (com.olxgroup.panamera.app.common.activities.c.p2(i) && i2 == -1) {
            initFragment();
        }
        if (o0 != null) {
            if (intent == null) {
                intent = new Intent();
            }
            o0.onActivityResult(i, i2, intent);
        }
    }

    public void onBackPressed() {
        p3();
    }

    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        a3();
        Intent intent = getIntent();
        if (intent != null) {
            this.i0 = intent.getBooleanExtra("isEditShowroom", false);
            Serializable serializableExtra = intent.getSerializableExtra("showroomType");
            this.j0 = serializableExtra instanceof ShowroomType ? (ShowroomType) serializableExtra : null;
            this.k0 = intent.getBooleanExtra("showroomHasDraft", false);
        }
        if (bundle == null) {
            initFragment();
        }
        setUpActionBar();
    }

    public boolean onSupportNavigateUp() {
        p3();
        return true;
    }

    protected String t2() {
        return "myprofile";
    }
}