正在查看: Uptodown App Store v6.80 应用的 AppDetailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Uptodown App Store v6.80 应用的 AppDetailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uptodown.activities;
import S2.AbstractC0525o;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.widget.RelativeLayout;
import androidx.activity.OnBackPressedCallback;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultCallback;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.LifecycleOwnerKt;
import com.uptodown.UptodownApp;
import com.uptodown.activities.AppDetailActivity;
import com.uptodown.workers.GetUserDataWorker;
import d2.C0820h;
import d2.C0837m1;
import d2.C0837m1.RunnableC0839b;
import d2.C0837m1.RunnableC0841d;
import d2.K1;
import g2.C0952c;
import g2.C0955f;
import g2.C0957h;
import g2.C0965p;
import java.util.ArrayList;
import java.util.List;
import kotlin.jvm.internal.AbstractC1009g;
import u2.v;
public final class AppDetailActivity extends AbstractC0740a {
public static final a P = new a(null);
private C0957h J;
private ArrayList K = new ArrayList();
private ArrayList L = new ArrayList();
private ArrayList M = new ArrayList();
private final ActivityResultLauncher N;
private final e O;
public static final class a {
public a(AbstractC1009g abstractC1009g) {
this();
}
private a() {
}
}
public final class b implements Runnable {
private final int a;
private final String b;
public b(int i, String str) {
this.a = i;
this.b = str;
}
@Override
public void run() {
C0837m1 l32;
if (this.b == null || (l32 = AppDetailActivity.this.l3()) == null || !l32.isResumed() || !m3.m.q(l32.P3().R(), this.b, false, 2, null)) {
return;
}
v.a aVar = u2.v.v;
Context baseContext = AppDetailActivity.this.getBaseContext();
kotlin.jvm.internal.m.d(baseContext, "getBaseContext(...)");
u2.v a = aVar.a(baseContext);
a.a();
g2.P C02 = a.C0(this.b);
a.i();
if (C02 != null) {
AppDetailActivity.this.runOnUiThread(l32.new RunnableC0839b(this.a, C02));
}
}
}
public final class c implements Runnable {
private final String a;
private final int b;
final AppDetailActivity c;
public c(AppDetailActivity appDetailActivity, String packagename, int i) {
kotlin.jvm.internal.m.e(packagename, "packagename");
this.c = appDetailActivity;
this.a = packagename;
this.b = i;
}
@Override
public void run() {
List fragments = this.c.getSupportFragmentManager().getFragments();
kotlin.jvm.internal.m.d(fragments, "getFragments(...)");
Fragment fragment = (Fragment) AbstractC0525o.P(fragments);
if (fragment == null || !(fragment instanceof C0837m1)) {
return;
}
new C0837m1.RunnableC0840c((C0837m1) fragment, this.a, this.b);
}
}
public final class d implements Runnable {
private final int a;
private final C0965p b;
public d(int i, C0965p c0965p) {
this.a = i;
this.b = c0965p;
}
@Override
public void run() {
y2.g l22;
C0837m1 l32 = AppDetailActivity.this.l3();
if (l32 != null && l32.isResumed()) {
AppDetailActivity.this.runOnUiThread(l32.new RunnableC0841d(this.a, this.b));
}
if (AppDetailActivity.this.m3() != null) {
K1 m32 = AppDetailActivity.this.m3();
kotlin.jvm.internal.m.b(m32);
C0965p c0965p = this.b;
m32.Z(c0965p != null ? c0965p.w() : null);
}
if (AppDetailActivity.this.k3() != null) {
C0820h k32 = AppDetailActivity.this.k3();
kotlin.jvm.internal.m.b(k32);
C0965p c0965p2 = this.b;
k32.u(c0965p2 != null ? c0965p2.w() : null);
}
if (this.b == null || (l22 = AppDetailActivity.this.l2()) == null) {
return;
}
l22.N(this.b, this.a, AppDetailActivity.this);
}
}
public static final class e extends OnBackPressedCallback {
e() {
super(true);
}
public void handleOnBackPressed() {
y2.g l22 = AppDetailActivity.this.l2();
if (l22 == null || !l22.l(AppDetailActivity.this)) {
if (AppDetailActivity.this.L.size() > 0) {
AppDetailActivity.this.L.remove(AbstractC0525o.j(AppDetailActivity.this.L));
if (AppDetailActivity.this.L.size() == 0 && AppDetailActivity.this.n3() != null && AppDetailActivity.this.K.size() == 1) {
AppDetailActivity.this.finish();
} else {
AppDetailActivity.this.getSupportFragmentManager().popBackStackImmediate();
}
} else if (AppDetailActivity.this.M.size() > 0) {
AppDetailActivity.this.M.remove(AbstractC0525o.j(AppDetailActivity.this.M));
AppDetailActivity.this.getSupportFragmentManager().popBackStackImmediate();
} else if (AppDetailActivity.this.K.size() > 0) {
AppDetailActivity.this.K.remove(AbstractC0525o.j(AppDetailActivity.this.K));
AppDetailActivity.this.getSupportFragmentManager().popBackStackImmediate();
if (AppDetailActivity.this.K.size() == 0) {
AppDetailActivity.this.finish();
}
} else {
AppDetailActivity.this.finish();
}
if (AppDetailActivity.this.K.size() > 0) {
((C0837m1) AbstractC0525o.P(AppDetailActivity.this.K)).O2(AppDetailActivity.this);
}
}
}
}
static final class f extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
f(V2.d dVar) {
super(2, dVar);
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return AppDetailActivity.this.new f(dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
Object c = W2.b.c();
int i = this.a;
if (i == 0) {
R2.n.b(obj);
GetUserDataWorker.a aVar = GetUserDataWorker.b;
AppCompatActivity appCompatActivity = AppDetailActivity.this;
this.a = 1;
if (GetUserDataWorker.a.b(aVar, appCompatActivity, null, this, 2, null) == c) {
return c;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
}
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((f) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
static final class g extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
final String c;
g(String str, V2.d dVar) {
super(2, dVar);
this.c = str;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return AppDetailActivity.this.new g(this.c, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
W2.b.c();
if (this.a != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
C0837m1 l32 = AppDetailActivity.this.l3();
if (l32 != null && l32.isResumed()) {
l32.Z6(this.c);
l32.X6(this.c);
}
if (!AppDetailActivity.this.L.isEmpty()) {
((K1) AbstractC0525o.P(AppDetailActivity.this.L)).Z(this.c);
}
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((g) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
static final class h extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
final String c;
h(String str, V2.d dVar) {
super(2, dVar);
this.c = str;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return AppDetailActivity.this.new h(this.c, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
W2.b.c();
if (this.a != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
C0837m1 l32 = AppDetailActivity.this.l3();
if (l32 != null && l32.isResumed()) {
l32.a7(this.c);
}
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((h) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
public AppDetailActivity() {
ActivityResultLauncher registerForActivityResult = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
public final void onActivityResult(Object obj) {
AppDetailActivity.j3(AppDetailActivity.this, (ActivityResult) obj);
}
});
kotlin.jvm.internal.m.d(registerForActivityResult, "registerForActivityResult(...)");
this.N = registerForActivityResult;
this.O = new e();
}
public static final void j3(AppDetailActivity appDetailActivity, ActivityResult activityResult) {
if (activityResult.getResultCode() == -1) {
UptodownApp.a.P0(UptodownApp.F, appDetailActivity, false, 2, null);
}
}
public final C0820h k3() {
if (this.M.size() > 0) {
return (C0820h) AbstractC0525o.P(this.M);
}
return null;
}
public final C0837m1 l3() {
if (this.K.size() > 0) {
return (C0837m1) AbstractC0525o.P(this.K);
}
return null;
}
public final K1 m3() {
if (this.L.size() > 0) {
return (K1) AbstractC0525o.P(this.L);
}
return null;
}
public static final void p3(AppDetailActivity appDetailActivity, ActivityResult activityResult) {
o3.g.d(LifecycleOwnerKt.getLifecycleScope(appDetailActivity), o3.Y.b(), (o3.L) null, appDetailActivity.new f(null), 2, (Object) null);
}
@Override
public void a3(C0955f appInfo) {
kotlin.jvm.internal.m.e(appInfo, "appInfo");
C0837m1 a4 = C0837m1.n.a(appInfo);
getSupportFragmentManager().beginTransaction().add(2131362174, a4, (String) null).addToBackStack(String.valueOf(appInfo.e())).commit();
this.K.add(a4);
}
public final C0957h n3() {
return this.J;
}
public final ActivityResultLauncher o3() {
return this.N;
}
@Override
public void onCreate(Bundle bundle) {
C0955f c0955f;
Bundle extras;
Parcelable parcelable;
Object parcelable2;
Parcelable parcelable3;
Object parcelable4;
super.onCreate(bundle);
setContentView(2131558431);
Intent intent = getIntent();
M2((RelativeLayout) findViewById(2131361915));
if (intent == null || (extras = intent.getExtras()) == null) {
c0955f = null;
} else {
if (extras.containsKey("appInfo")) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable4 = extras.getParcelable("appInfo", C0955f.class);
parcelable3 = (Parcelable) parcelable4;
} else {
parcelable3 = extras.getParcelable("appInfo");
}
c0955f = (C0955f) parcelable3;
} else {
c0955f = null;
}
if (extras.containsKey("viewCategory")) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable2 = extras.getParcelable("viewCategory", C0957h.class);
parcelable = (Parcelable) parcelable2;
} else {
parcelable = extras.getParcelable("viewCategory");
}
this.J = (C0957h) parcelable;
}
}
C0837m1 a4 = C0837m1.n.a(c0955f);
getSupportFragmentManager().beginTransaction().add(2131362174, a4, (String) null).commit();
getOnBackPressedDispatcher().addCallback(this, this.O);
U2(registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
public final void onActivityResult(Object obj) {
AppDetailActivity.p3(AppDetailActivity.this, (ActivityResult) obj);
}
}));
this.K.add(a4);
C0957h c0957h = this.J;
if (c0957h != null) {
kotlin.jvm.internal.m.b(c0957h);
u3(c0957h);
}
}
public final void q3() {
C0837m1 l32 = l3();
if (l32 != null) {
l32.U5();
}
}
public final Object r3(String str, V2.d dVar) {
Object g4 = o3.g.g(o3.Y.c(), new g(str, null), dVar);
return g4 == W2.b.c() ? g4 : R2.s.a;
}
public final Object s3(String str, V2.d dVar) {
Object g4 = o3.g.g(o3.Y.c(), new h(str, null), dVar);
return g4 == W2.b.c() ? g4 : R2.s.a;
}
public final void t3(C0952c alternatives) {
kotlin.jvm.internal.m.e(alternatives, "alternatives");
C0820h a4 = C0820h.f.a(alternatives);
getSupportFragmentManager().beginTransaction().setCustomAnimations(2130772032, 2130772029).add(2131362174, a4, (String) null).addToBackStack(alternatives.c()).commit();
this.M.add(a4);
}
public final void u3(C0957h category) {
kotlin.jvm.internal.m.e(category, "category");
K1 a4 = K1.i.a(category);
getSupportFragmentManager().beginTransaction().setCustomAnimations(2130772032, 2130772029).add(2131362174, a4, (String) null).addToBackStack(String.valueOf(category.b())).commit();
this.L.add(a4);
}
}