正在查看: Mitra Bukalapak v2.55.0 应用的 AtomicActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mitra Bukalapak v2.55.0 应用的 AtomicActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bukalapak.android.lib.activityfactory.atomic;
import android.R;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.RelativeLayout;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.bukalapak.android.lib.ui.view.atomictoolbar.AtomicToolbar;
import defpackage.f87;
import defpackage.i79;
import defpackage.l5;
import defpackage.l79;
import defpackage.ln3;
import defpackage.m79;
import defpackage.p79;
import defpackage.q79;
import defpackage.r79;
import defpackage.tb7;
import defpackage.zw;
public class AtomicActivity extends zw implements m79, ln3 {
protected AtomicToolbar h;
protected CoordinatorLayout i;
@Override
public View G() {
if (u() == null) {
return null;
}
if (u() instanceof r79) {
return u().G();
}
if (u() instanceof q79) {
q79 u = u();
return l79.a.a(this, u.a(), u.b(), u.c());
}
if (u() instanceof p79) {
return l79.a.a(this, u().a(), 17, R.color.black);
}
return null;
}
@Override
public AtomicToolbar c() {
return this.h;
}
public void invalidateOptionsMenu() {
super/*androidx.appcompat.app.c*/.invalidateOptionsMenu();
AtomicToolbar atomicToolbar = this.h;
if (atomicToolbar != null) {
atomicToolbar.f();
}
}
public void onAttachedToWindow() {
super/*android.app.Activity*/.onAttachedToWindow();
getWindow().setFormat(1);
}
@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.a);
this.h = (AtomicToolbar) findViewById(f87.c);
this.i = findViewById(f87.e);
x();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
if (u() != null) {
if (u() instanceof i79) {
Drawable a = u().a();
if (a != null) {
l79.a.c(menu, a, true);
} else {
l79.a.c(menu, d20.a.i(), true);
}
} else {
l79.a.c(menu, d20.a.i(), true);
}
u().onCreateOptionsMenu(menu, getMenuInflater());
}
return super/*android.app.Activity*/.onCreateOptionsMenu(menu);
}
protected void onDestroy() {
super.onDestroy();
this.h = null;
this.i = null;
}
@Override
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;
}
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
if (u() != null) {
u().onPrepareOptionsMenu(menu);
}
return super/*android.app.Activity*/.onPrepareOptionsMenu(menu);
}
void x() {
if (u() != null) {
if (G() == null && (u() instanceof i79) && u().a() == null) {
this.h.setVisibility(8);
return;
}
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
u();
layoutParams.addRule(3, f87.c);
this.i.setLayoutParams(layoutParams);
this.h.setVisibility(0);
this.h.setStatusInDebugMode(ou2.a(u()));
l5 l5Var = l5.a;
if (l5Var.c() != null) {
this.h.setStatusInDebugModeClickListener((View.OnClickListener) l5Var.c().invoke(this));
}
this.h.setConnection(this);
if (u() instanceof p79) {
setTitle(u().a());
}
}
}
}