导航菜单

页面标题

页面副标题

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

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

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


package com.bukalapak.android.lib.activityfactory.atomic;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;
import androidx.appcompat.widget.Toolbar;
import defpackage.f87;
import defpackage.p79;
import defpackage.tb7;
import defpackage.zw;

public class StandardActivity extends zw {
    protected Toolbar h;

    @Override
    public void onBackPressed() {
        if (u() == null || !(u() instanceof f5)) {
            finish();
        } else {
            if (u().d()) {
                return;
            }
            finish();
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(tb7.c);
        this.h = findViewById(f87.a);
        x();
    }

    public boolean onCreateOptionsMenu(Menu menu) {
        if (u() != null) {
            u().onCreateOptionsMenu(menu, getMenuInflater());
        }
        return super/*android.app.Activity*/.onCreateOptionsMenu(menu);
    }

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

    public boolean onOptionsItemSelected(MenuItem menuItem) {
        if (menuItem.getItemId() != 16908332) {
            return u() != null ? u().onOptionsItemSelected(menuItem) : super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
        }
        if (u() == null || !(u() instanceof f5)) {
            finish();
            return true;
        }
        if (u().g0()) {
            return true;
        }
        finish();
        return true;
    }

    public boolean onPrepareOptionsMenu(Menu menu) {
        if (u() != null) {
            u().onPrepareOptionsMenu(menu);
        }
        return super/*android.app.Activity*/.onPrepareOptionsMenu(menu);
    }

    void x() {
        if (u() != null) {
            u();
            this.h.setVisibility(0);
            EditText editText = (EditText) this.h.findViewById(f87.g);
            if (editText != null) {
                editText.setVisibility(8);
            }
            setSupportActionBar(this.h);
            if (u() == null || getSupportActionBar() == null) {
                return;
            }
            u();
            getSupportActionBar().u(true);
            getSupportActionBar().w(true);
            if (u() instanceof p79) {
                getSupportActionBar().B(u().a());
            }
        }
    }
}