导航菜单

页面标题

页面副标题

Mitra Bukalapak v2.55.0 - PerdiActivity.java 源代码

正在查看: Mitra Bukalapak v2.55.0 应用的 PerdiActivity.java JAVA 源代码文件

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


package com.bukalapak.android.lib.persistentdialog;

import android.R;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.bukalapak.android.lib.ui.view.atomictoolbar.AtomicToolbar;
import com.mrhabibi.autonomousdialog.DialogActivity;
import defpackage.l79;
import defpackage.ln3;
import defpackage.m79;
import defpackage.p79;
import defpackage.q87;
import defpackage.r79;
import defpackage.ux1;
import defpackage.za7;

public class PerdiActivity extends ux1 implements m79, ln3 {
    AtomicToolbar k;

    @Override
    public View G() {
        p79 p79Var = ((DialogActivity) this).h;
        if (p79Var == null) {
            return null;
        }
        if (p79Var instanceof r79) {
            return ((r79) p79Var).G();
        }
        if (p79Var instanceof p79) {
            return l79.a.a(this, p79Var.a(), 8388627, R.color.black);
        }
        return null;
    }

    @Override
    public AtomicToolbar c() {
        return this.k;
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(za7.a);
        this.k = (AtomicToolbar) findViewById(q87.b);
        w();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        if (((DialogActivity) this).b) {
            l79.a.c(menu, j31.c(this, y77.H, Integer.valueOf(g67.a)), false);
        }
        return super/*android.app.Activity*/.onCreateOptionsMenu(menu);
    }

    protected void onDestroy() {
        super.onDestroy();
        this.k = null;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        if (menuItem.getItemId() != 16908332) {
            return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
        }
        setResult(0, t());
        finish();
        return true;
    }

    protected void onStop() {
        try {
            super.onStop();
        } catch (Exception unused) {
        }
    }

    void w() {
        if (((DialogActivity) this).h == null || this.k == null) {
            return;
        }
        if (G() == null) {
            this.k.setVisibility(8);
            return;
        }
        this.k.setVisibility(0);
        this.k.a(l79.a.b(this));
        this.k.setStatusInDebugMode(ou2.a(((DialogActivity) this).h));
        this.k.setConnection(this);
        p79 p79Var = ((DialogActivity) this).h;
        if (p79Var instanceof p79) {
            setTitle(p79Var.a());
        }
    }
}