正在查看: Mitra Bukalapak v2.55.0 应用的 BlockingLoadingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mitra Bukalapak v2.55.0 应用的 BlockingLoadingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bukalapak.android.lib.bazaar.bukalapak.component.molecule.overlay;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewPropertyAnimator;
import android.widget.FrameLayout;
import com.bukalapak.android.lib.api4.tungku.data.SingleKycIdentity;
import com.bukalapak.android.lib.bazaar.bukalapak.component.molecule.overlay.BlockingLoadingActivity;
import com.mrhabibi.autonomousdialog.DialogActivity;
import defpackage.c20;
import defpackage.dv0;
import defpackage.ep8;
import defpackage.f20;
import defpackage.p64;
import defpackage.xl9;
import java.util.LinkedHashMap;
import java.util.Map;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\b\n\u0002\b\t\b\u0000\u0018\u0000 #2\u00020\u0001:\u0001$B\u0007¢\u0006\u0004\b!\u0010\"J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0002J\b\u0010\u0006\u001a\u00020\u0004H\u0002J\b\u0010\u0007\u001a\u00020\u0004H\u0002J\b\u0010\b\u001a\u00020\u0004H\u0002J\b\u0010\t\u001a\u00020\u0004H\u0002J\u0010\u0010\f\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\nH\u0002J\b\u0010\r\u001a\u00020\u0004H\u0002J\u0012\u0010\u0010\u001a\u00020\u00042\b\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0014J\u0012\u0010\u0012\u001a\u00020\u00042\b\u0010\u0011\u001a\u0004\u0018\u00010\u0002H\u0014J\u0010\u0010\u0014\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0002H\u0014J\b\u0010\u0015\u001a\u00020\u0004H\u0016J\b\u0010\u0016\u001a\u00020\u0004H\u0016J\b\u0010\u0017\u001a\u00020\u0004H\u0014J\b\u0010\u0018\u001a\u00020\u0004H\u0014R\u0016\u0010\u001b\u001a\u00020\n8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0019\u0010\u001aR\u0016\u0010\u001e\u001a\u00020\u001c8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001d\u0010\u0005R\u0016\u0010 \u001a\u00020\u001c8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001f\u0010\u0005¨\u0006%"}, d2 = {"Lcom/bukalapak/android/lib/bazaar/bukalapak/component/molecule/overlay/BlockingLoadingActivity;", "Lcom/mrhabibi/autonomousdialog/DialogActivity;", "Landroid/os/Bundle;", "extras", "Llm9;", "I", "F", "C", "K", "D", SingleKycIdentity.EMPTY, "forceLightStatusBar", "J", "B", "Landroid/content/Context;", "newBase", "attachBaseContext", "savedInstanceState", "onCreate", "outState", "onSaveInstanceState", "onBackPressed", "finish", "onStop", "onDestroy", "k", "Z", "cancelable", SingleKycIdentity.EMPTY, "l", "orientation", "m", "systemUiVisibility", "<init>", "()V", SingleKycIdentity.O, SingleKycIdentity.A, "ui-bazaar_release"}, k = 1, mv = {1, 7, 1})
public final class BlockingLoadingActivity extends DialogActivity {
private boolean cancelable;
private int orientation;
public Map<Integer, View> n = new LinkedHashMap();
private int systemUiVisibility = -1;
@Metadata(d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\u0007"}, d2 = {"com/bukalapak/android/lib/bazaar/bukalapak/component/molecule/overlay/BlockingLoadingActivity$b", "Landroid/animation/AnimatorListenerAdapter;", "Landroid/animation/Animator;", "animation", "Llm9;", "onAnimationStart", "onAnimationEnd", "ui-bazaar_release"}, k = 1, mv = {1, 7, 1})
public static final class b extends AnimatorListenerAdapter {
b() {
}
@Override
public void onAnimationEnd(Animator animator) {
p64.h(animator, "animation");
super.onAnimationEnd(animator);
BlockingLoadingActivity.this.finish();
}
@Override
public void onAnimationStart(Animator animator) {
p64.h(animator, "animation");
super.onAnimationStart(animator);
BlockingLoadingActivity.this.J(false);
}
}
@Metadata(d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\u0006"}, d2 = {"com/bukalapak/android/lib/bazaar/bukalapak/component/molecule/overlay/BlockingLoadingActivity$c", "Landroid/animation/AnimatorListenerAdapter;", "Landroid/animation/Animator;", "animation", "Llm9;", "onAnimationStart", "ui-bazaar_release"}, k = 1, mv = {1, 7, 1})
public static final class c extends AnimatorListenerAdapter {
c() {
}
@Override
public void onAnimationStart(Animator animator) {
p64.h(animator, "animation");
super.onAnimationStart(animator);
BlockingLoadingActivity.this.J(true);
}
}
private final void B() {
View z = z(h87.I);
if (z.animate() != null) {
z.animate().cancel();
}
}
private final void C() {
ViewPropertyAnimator animate;
ViewPropertyAnimator animate2;
FrameLayout frameLayout = (FrameLayout) z(h87.i);
if (frameLayout != null && (animate2 = frameLayout.animate()) != null) {
animate2.cancel();
}
View z = z(h87.I);
if (z == null || (animate = z.animate()) == null) {
return;
}
animate.cancel();
}
private final void D() {
C();
if (z(h87.I) != null) {
View z = z(h87.I);
if (!p64.b(z != null ? Float.valueOf(z.getAlpha()) : null, 0.0f)) {
((FrameLayout) z(h87.i)).animate().alpha(0.0f).setInterpolator(f20.a.e()).setDuration(200L).start();
ViewPropertyAnimator listener = z(h87.I).animate().alpha(0.0f).setDuration(200L).setListener(new b());
p64.g(listener, "private fun dismissDialo… background.start()\n }");
if (Build.VERSION.SDK_INT >= 23) {
listener.setUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
BlockingLoadingActivity.E(BlockingLoadingActivity.this, valueAnimator);
}
});
}
listener.start();
return;
}
}
super.finish();
overridePendingTransition(0, 0);
}
public static final void E(BlockingLoadingActivity blockingLoadingActivity, ValueAnimator valueAnimator) {
p64.h(blockingLoadingActivity, "this$0");
p64.h(valueAnimator, "it");
Object animatedValue = valueAnimator.getAnimatedValue();
Float f = animatedValue instanceof Float ? (Float) animatedValue : null;
if (f != null) {
xl9.d(blockingLoadingActivity, xl9.a(dv0.a.Q(), (1 - f.floatValue()) * 0.5f));
}
}
private final void F() {
ColorDrawable colorDrawable;
View z = z(h87.I);
try {
colorDrawable = new ColorDrawable(dv0.a.Q());
} catch (Exception unused) {
colorDrawable = new ColorDrawable(xl9.a(c20.gray100, 0.5f));
}
z.setBackground(colorDrawable);
z.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
BlockingLoadingActivity.H(BlockingLoadingActivity.this, view);
}
});
}
public static final void H(BlockingLoadingActivity blockingLoadingActivity, View view) {
p64.h(blockingLoadingActivity, "this$0");
blockingLoadingActivity.onBackPressed();
}
private final void I(Bundle bundle) {
if (bundle != null) {
this.cancelable = bundle.getBoolean("extra_cancelable", this.cancelable);
this.orientation = bundle.getInt("key_orientation", this.orientation);
this.systemUiVisibility = bundle.getInt("key_system_ui_visibility", this.systemUiVisibility);
}
}
public final void J(boolean z) {
Boolean valueOf = Boolean.valueOf(z);
boolean booleanValue = valueOf.booleanValue();
Object obj = valueOf;
if (!booleanValue) {
obj = null;
}
Object obj2 = obj;
if (obj == null) {
obj2 = Integer.valueOf(this.systemUiVisibility & 8192);
}
xl9.e(this, p64.c(obj2, 8192) ? c20.systemWhite : c20.gray100);
}
private final void K() {
ViewPropertyAnimator alpha = ((FrameLayout) z(h87.i)).animate().alpha(1.0f);
f20 f20Var = f20.a;
alpha.setInterpolator(f20Var.e()).setDuration(200L).start();
ViewPropertyAnimator listener = z(h87.I).animate().alpha(1.0f).setInterpolator(f20Var.e()).setDuration(200L).setListener(new c());
p64.g(listener, "private fun showDialog()… background.start()\n }");
if (Build.VERSION.SDK_INT >= 23) {
listener.setUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
BlockingLoadingActivity.L(BlockingLoadingActivity.this, valueAnimator);
}
});
}
listener.start();
}
public static final void L(BlockingLoadingActivity blockingLoadingActivity, ValueAnimator valueAnimator) {
p64.h(blockingLoadingActivity, "this$0");
p64.h(valueAnimator, "it");
Object animatedValue = valueAnimator.getAnimatedValue();
Float f = animatedValue instanceof Float ? (Float) animatedValue : null;
if (f != null) {
xl9.d(blockingLoadingActivity, xl9.a(dv0.a.Q(), f.floatValue() * 0.5f));
}
}
@Override
protected void attachBaseContext(Context context) {
super.attachBaseContext(context);
ep8.b(this);
}
@Override
public void finish() {
D();
}
@Override
public void onBackPressed() {
if (this.cancelable) {
D();
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
I(getIntent().getExtras());
setContentView(ec7.a);
if (bundle != null) {
I(bundle);
}
F();
K();
}
@Override
protected void onDestroy() {
B();
super.onDestroy();
}
@Override
protected void onSaveInstanceState(Bundle bundle) {
p64.h(bundle, "outState");
bundle.putBoolean("extra_cancelable", this.cancelable);
bundle.putInt("key_orientation", this.orientation);
bundle.putInt("key_system_ui_visibility", this.systemUiVisibility);
super.onSaveInstanceState(bundle);
}
@Override
protected void onStop() {
try {
B();
super.onStop();
} catch (Exception unused) {
}
}
public View z(int i) {
Map<Integer, View> map = this.n;
View view = map.get(Integer.valueOf(i));
if (view != null) {
return view;
}
View findViewById = findViewById(i);
if (findViewById == null) {
return null;
}
map.put(Integer.valueOf(i), findViewById);
return findViewById;
}
}