正在查看: Uptodown App Store v6.80 应用的 OldVersionsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Uptodown App Store v6.80 应用的 OldVersionsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uptodown.activities;
import M1.C0462q;
import N1.k;
import S2.AbstractC0525o;
import W1.C0536h;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import android.view.Window;
import android.widget.CompoundButton;
import android.widget.TextView;
import androidx.activity.ComponentActivity;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.LifecycleOwnerKt;
import androidx.lifecycle.ViewModelLazy;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import androidx.lifecycle.viewmodel.CreationExtras;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import c2.C0599p;
import com.mbridge.msdk.MBridgeConstans;
import com.uptodown.UptodownApp;
import com.uptodown.activities.C0759u;
import com.uptodown.activities.OldVersionsActivity;
import com.uptodown.workers.DownloadWorker;
import f2.InterfaceC0938v;
import g2.C0940A;
import g2.C0948I;
import g2.C0953d;
import g2.C0955f;
import g2.C0964o;
import g2.C0965p;
import g2.C0966q;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import kotlin.jvm.internal.AbstractC1009g;
import u2.H;
import u2.v;
public final class OldVersionsActivity extends AbstractC0740a {
public static final a N = new a(null);
private C0462q L;
private final R2.g J = R2.h.a(new d3.a() {
@Override
public final Object invoke() {
c2.X r3;
r3 = OldVersionsActivity.r3(OldVersionsActivity.this);
return r3;
}
});
private final R2.g K = new ViewModelLazy(kotlin.jvm.internal.D.b(C0759u.class), new i(this), new h(this), new j(null, this));
private e M = new e();
public static final class a {
public a(AbstractC1009g abstractC1009g) {
this();
}
private a() {
}
}
public final class b implements Runnable {
private final C0965p a;
final OldVersionsActivity b;
public b(OldVersionsActivity oldVersionsActivity, C0965p download) {
kotlin.jvm.internal.m.e(download, "download");
this.b = oldVersionsActivity;
this.a = download;
}
@Override
public void run() {
if (this.b.C3().d().getValue() != null) {
Object value = this.b.C3().d().getValue();
kotlin.jvm.internal.m.b(value);
if (((C0955f) value).R() != null) {
Object value2 = this.b.C3().d().getValue();
kotlin.jvm.internal.m.b(value2);
if (m3.m.p(((C0955f) value2).R(), this.a.w(), true)) {
this.b.M3(this.a);
}
}
}
}
}
public final class c implements Runnable {
private final int a;
private final C0965p b;
public c(int i, C0965p c0965p) {
this.a = i;
this.b = c0965p;
}
@Override
public void run() {
Object value = OldVersionsActivity.this.C3().d().getValue();
kotlin.jvm.internal.m.b(value);
String R = ((C0955f) value).R();
C0965p c0965p = this.b;
if (m3.m.q(R, c0965p != null ? c0965p.w() : null, false, 2, null)) {
int i = this.a;
if (i == 203) {
OldVersionsActivity.this.R3(this.b);
return;
}
if (i == 208) {
?? r02 = OldVersionsActivity.this;
String string = r02.getString(2131952403);
kotlin.jvm.internal.m.d(string, "getString(...)");
r02.r0(string);
return;
}
if (OldVersionsActivity.this.L == null || OldVersionsActivity.this.C3().g()) {
return;
}
C0965p c0965p2 = this.b;
Long valueOf = c0965p2 != null ? Long.valueOf(c0965p2.h()) : null;
C0955f c0955f = (C0955f) OldVersionsActivity.this.C3().d().getValue();
if (kotlin.jvm.internal.m.a(valueOf, c0955f != null ? Long.valueOf(c0955f.e()) : null)) {
OldVersionsActivity.this.R3(this.b);
}
}
}
}
public final class d implements Runnable {
private final String a;
private final int b;
public d(String str, int i) {
this.a = str;
this.b = i;
}
@Override
public void run() {
throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.OldVersionsActivity.d.run():void");
}
}
public static final class e implements InterfaceC0938v {
e() {
}
@Override
public void a() {
if (UptodownApp.F.a0()) {
OldVersionsActivity.this.C3().l(true);
OldVersionsActivity.this.C3().n(r0.i() - 1);
OldVersionsActivity.this.C3().m(OldVersionsActivity.this.C3().i() * 20);
OldVersionsActivity.this.B3();
}
}
@Override
public void b(int i) {
if (UptodownApp.F.a0()) {
OldVersionsActivity.this.J3(i);
}
}
@Override
public void c(int i) {
OldVersionsActivity.this.I3(i);
}
@Override
public void d() {
if (UptodownApp.F.a0()) {
OldVersionsActivity.this.C3().l(true);
C0759u C3 = OldVersionsActivity.this.C3();
C3.n(C3.i() + 1);
OldVersionsActivity.this.C3().m(OldVersionsActivity.this.C3().i() * 20);
OldVersionsActivity.this.B3();
}
}
}
static final class f extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
static final class a implements r3.f {
final OldVersionsActivity a;
a(OldVersionsActivity oldVersionsActivity) {
this.a = oldVersionsActivity;
}
public final Object emit(u2.H h, V2.d dVar) {
if (kotlin.jvm.internal.m.a(h, H.a.a)) {
if (this.a.C3().f()) {
this.a.A3().b.setVisibility(0);
}
} else if (h instanceof H.c) {
H.c cVar = (H.c) h;
if (((C0759u.a) cVar.a()).c()) {
this.a.C3().c().setValue(((C0759u.a) cVar.a()).a());
this.a.C3().d().setValue(((C0759u.a) cVar.a()).b());
if (((C0759u.a) cVar.a()).b().P() == null) {
this.a.A3().e.setVisibility(0);
} else if (this.a.L == null) {
this.a.t3();
this.a.A3().c.setAdapter(this.a.L);
} else {
C0462q c0462q = this.a.L;
kotlin.jvm.internal.m.b(c0462q);
c0462q.g(this.a.C3().i());
C0462q c0462q2 = this.a.L;
kotlin.jvm.internal.m.b(c0462q2);
c0462q2.f(((C0759u.a) cVar.a()).b().P());
C0462q c0462q3 = this.a.L;
kotlin.jvm.internal.m.b(c0462q3);
c0462q3.e((C0953d) this.a.C3().c().getValue());
this.a.A3().c.scrollToPosition(0);
this.a.Q3();
}
this.a.O3();
} else {
C0955f c0955f = (C0955f) this.a.C3().d().getValue();
if (c0955f != null) {
c0955f.S0(null);
}
this.a.A3().e.setVisibility(0);
this.a.O3();
}
} else if (!kotlin.jvm.internal.m.a(h, H.b.a)) {
throw new R2.k();
}
return R2.s.a;
}
}
f(V2.d dVar) {
super(2, dVar);
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return OldVersionsActivity.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);
r3.I e = OldVersionsActivity.this.C3().e();
a aVar = new a(OldVersionsActivity.this);
this.a = 1;
if (e.collect(aVar, this) == c) {
return c;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
}
throw new R2.d();
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((f) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
public static final class g implements f2.V {
final C0940A b;
g(C0940A c0940a) {
this.b = c0940a;
}
@Override
public void a(C0948I reportVT) {
kotlin.jvm.internal.m.e(reportVT, "reportVT");
Intent intent = new Intent((Context) OldVersionsActivity.this, (Class<?>) VirusTotalReport.class);
intent.putExtra("appInfo", (Parcelable) OldVersionsActivity.this.C3().d().getValue());
intent.putExtra("appReportVT", reportVT);
intent.putExtra("old_version_name", this.b.i());
AppCompatActivity appCompatActivity = OldVersionsActivity.this;
appCompatActivity.startActivity(intent, UptodownApp.F.a(appCompatActivity));
}
@Override
public void b() {
if (OldVersionsActivity.this.C3().d().getValue() != null) {
Object value = OldVersionsActivity.this.C3().d().getValue();
kotlin.jvm.internal.m.b(value);
String o02 = ((C0955f) value).o0();
if (o02 != null && o02.length() != 0) {
Object value2 = OldVersionsActivity.this.C3().d().getValue();
kotlin.jvm.internal.m.b(value2);
String o03 = ((C0955f) value2).o0();
kotlin.jvm.internal.m.b(o03);
if (Long.parseLong(o03) > 650000000) {
Intent intent = new Intent((Context) OldVersionsActivity.this, (Class<?>) VirusTotalReport.class);
intent.putExtra("appInfo", (Parcelable) OldVersionsActivity.this.C3().d().getValue());
intent.putExtra("isVirusTotalReportAvaialable", false);
AppCompatActivity appCompatActivity = OldVersionsActivity.this;
appCompatActivity.startActivity(intent, UptodownApp.F.a(appCompatActivity));
return;
}
}
}
OldVersionsActivity oldVersionsActivity = OldVersionsActivity.this;
Object value3 = oldVersionsActivity.C3().d().getValue();
kotlin.jvm.internal.m.b(value3);
oldVersionsActivity.G2(((C0955f) value3).l0());
}
}
public static final class h extends kotlin.jvm.internal.n implements d3.a {
final ComponentActivity a;
public h(ComponentActivity componentActivity) {
super(0);
this.a = componentActivity;
}
@Override
public final ViewModelProvider.Factory invoke() {
return this.a.getDefaultViewModelProviderFactory();
}
}
public static final class i extends kotlin.jvm.internal.n implements d3.a {
final ComponentActivity a;
public i(ComponentActivity componentActivity) {
super(0);
this.a = componentActivity;
}
@Override
public final ViewModelStore invoke() {
return this.a.getViewModelStore();
}
}
public static final class j extends kotlin.jvm.internal.n implements d3.a {
final d3.a a;
final ComponentActivity b;
public j(d3.a aVar, ComponentActivity componentActivity) {
super(0);
this.a = aVar;
this.b = componentActivity;
}
@Override
public final CreationExtras invoke() {
CreationExtras creationExtras;
d3.a aVar = this.a;
return (aVar == null || (creationExtras = (CreationExtras) aVar.invoke()) == null) ? this.b.getDefaultViewModelCreationExtras() : creationExtras;
}
}
static final class k extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
final String c;
k(String str, V2.d dVar) {
super(2, dVar);
this.c = str;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return OldVersionsActivity.this.new k(this.c, dVar);
}
@Override
public final java.lang.Object invokeSuspend(java.lang.Object r3) {
throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.OldVersionsActivity.k.invokeSuspend(java.lang.Object):java.lang.Object");
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((k) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
public final c2.X A3() {
return (c2.X) this.J.getValue();
}
public final void B3() {
C3().l(true);
if (C3().d().getValue() != null) {
C3().b(this);
}
}
public final C0759u C3() {
return (C0759u) this.K.getValue();
}
private final void D3() {
Toolbar findViewById = findViewById(2131363526);
if (findViewById != null) {
Drawable drawable = ContextCompat.getDrawable(this, N1.e.c);
if (drawable != null) {
findViewById.setNavigationIcon(drawable);
findViewById.setNavigationContentDescription(getString(2131951721));
}
findViewById.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
OldVersionsActivity.E3(OldVersionsActivity.this, view);
}
});
}
TextView textView = (TextView) findViewById(2131364300);
k.a aVar = N1.k.g;
textView.setTypeface(aVar.w());
A3().e.setTypeface(aVar.x());
A3().c.setLayoutManager(new LinearLayoutManager(this, 1, false));
A3().c.setItemAnimator((RecyclerView.ItemAnimator) null);
A3().c.addItemDecoration(new w2.l((int) getResources().getDimension(2131166020), (int) getResources().getDimension(2131166022)));
A3().b.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
OldVersionsActivity.F3(view);
}
});
}
public static final void E3(OldVersionsActivity oldVersionsActivity, View view) {
oldVersionsActivity.getOnBackPressedDispatcher().onBackPressed();
}
public static final void F3(View view) {
}
private final boolean H3(String str, long j4) {
PackageManager packageManager = getPackageManager();
try {
kotlin.jvm.internal.m.b(packageManager);
} catch (PackageManager.NameNotFoundException unused) {
}
return j4 < new C0536h().m(W1.s.d(packageManager, str, 128));
}
private final void K3(C0940A c0940a) {
if (isFinishing() || C3().d().getValue() == null) {
return;
}
C0955f.b bVar = C0955f.f286H0;
Object value = C3().d().getValue();
kotlin.jvm.internal.m.b(value);
if (bVar.d(((C0955f) value).o())) {
new b2.m(this, c0940a.b(), null, new g(c0940a), LifecycleOwnerKt.getLifecycleScope(this));
}
}
private final void L3(C0940A c0940a, C0965p c0965p) {
if (c0940a.f() != null) {
C0964o c0964o = new C0964o();
c0964o.k(this);
ArrayList f4 = c0940a.f();
kotlin.jvm.internal.m.b(f4);
boolean f5 = c0964o.f(f4, this);
if (!com.uptodown.activities.preferences.a.a.n1(this)) {
N3(c0965p);
return;
}
if (f5) {
N3(c0965p);
return;
}
Bundle bundle = new Bundle();
bundle.putString("type", "required_feature");
bundle.putString("fileId", c0940a.b());
if (c0965p.h() >= 0) {
bundle.putString("appId", String.valueOf(c0965p.h()));
}
bundle.putString("packagename", c0965p.w());
u2.z n22 = n2();
if (n22 != null) {
n22.d("warning", bundle);
}
String string = getString(2131952319);
kotlin.jvm.internal.m.d(string, "getString(...)");
w3(c0965p, string);
}
}
public final void M3(C0965p c0965p) {
String w = c0965p.w();
kotlin.jvm.internal.m.b(w);
if (H3(w, c0965p.E())) {
String w3 = c0965p.w();
kotlin.jvm.internal.m.b(w3);
u3(w3, c0965p);
} else {
File n = c0965p.n();
if (n == null || !n.exists()) {
return;
}
UptodownApp.a.Y(UptodownApp.F, n, this, null, 4, null);
}
}
private final void N3(C0965p c0965p) {
int R = c0965p.R(this);
if (R < 0) {
r0(getString(2131952000) + " (108)");
return;
}
Object value = C3().d().getValue();
kotlin.jvm.internal.m.b(value);
String M = ((C0955f) value).M();
kotlin.jvm.internal.m.b(M);
J2(R, M);
}
public final void O3() {
C3().k(false);
A3().b.setVisibility(8);
C3().l(false);
}
private final void P3(String str) {
new N1.j(this).h(str);
}
public final void Q3() {
C0462q c0462q = this.L;
if (c0462q != null) {
c0462q.notifyDataSetChanged();
}
}
public final void R3(C0965p c0965p) {
C0940A c0940a;
Object obj;
Object value = C3().d().getValue();
kotlin.jvm.internal.m.b(value);
ArrayList P = ((C0955f) value).P();
if (P != null) {
int size = P.size();
int i4 = 0;
while (true) {
if (i4 >= size) {
obj = null;
break;
}
obj = P.get(i4);
i4++;
C0940A c0940a2 = (C0940A) obj;
if (c0965p != null && c0940a2.h() == c0965p.E()) {
break;
}
}
c0940a = (C0940A) obj;
} else {
c0940a = null;
}
Object value2 = C3().d().getValue();
kotlin.jvm.internal.m.b(value2);
ArrayList P3 = ((C0955f) value2).P();
Integer valueOf = P3 != null ? Integer.valueOf(AbstractC0525o.K(P3, c0940a)) : null;
if (c0940a == null || valueOf == null) {
Q3();
return;
}
C0462q c0462q = this.L;
if (c0462q != null) {
c0462q.notifyItemChanged(valueOf.intValue());
}
}
public static final c2.X r3(OldVersionsActivity oldVersionsActivity) {
return c2.X.c(oldVersionsActivity.getLayoutInflater());
}
private final void s3(Context context, C0965p c0965p) {
Long valueOf = c0965p != null ? Long.valueOf(c0965p.h()) : null;
String w = c0965p != null ? c0965p.w() : null;
if (valueOf != null) {
DownloadWorker.a aVar = DownloadWorker.d;
if (aVar.j(valueOf.longValue())) {
aVar.b();
u2.F.a.e(context);
return;
}
}
if (w != null) {
DownloadWorker.a aVar2 = DownloadWorker.d;
if (aVar2.m(w)) {
aVar2.c(w);
return;
}
}
u2.v a4 = u2.v.v.a(context);
a4.a();
if (c0965p != null) {
if (c0965p.O()) {
a4.x(c0965p);
} else {
Iterator it = c0965p.o().iterator();
kotlin.jvm.internal.m.d(it, "iterator(...)");
while (it.hasNext()) {
Object next = it.next();
kotlin.jvm.internal.m.d(next, "next(...)");
C0966q c0966q = (C0966q) next;
c0966q.p(0L);
c0966q.l(0);
a4.z1(c0966q);
}
}
}
a4.i();
}
public final void t3() {
Object value = C3().d().getValue();
kotlin.jvm.internal.m.b(value);
C0953d c0953d = (C0953d) C3().c().getValue();
e eVar = this.M;
Object value2 = C3().d().getValue();
kotlin.jvm.internal.m.b(value2);
this.L = new C0462q((C0955f) value, c0953d, this, eVar, ((C0955f) value2).u0());
}
private final void u3(final String str, final C0965p c0965p) {
String string = getString(2131952322);
kotlin.jvm.internal.m.d(string, "getString(...)");
P1(string, new d3.a() {
@Override
public final Object invoke() {
R2.s v3;
v3 = OldVersionsActivity.v3(OldVersionsActivity.this, c0965p, str);
return v3;
}
});
}
public static final R2.s v3(OldVersionsActivity oldVersionsActivity, C0965p c0965p, String str) {
com.uptodown.activities.preferences.a.a.v0(oldVersionsActivity, c0965p.q());
oldVersionsActivity.P3(str);
return R2.s.a;
}
private final void w3(final C0965p c0965p, String str) {
if (isFinishing()) {
return;
}
final C0599p c4 = C0599p.c(getLayoutInflater());
kotlin.jvm.internal.m.d(c4, "inflate(...)");
TextView textView = c4.d;
k.a aVar = N1.k.g;
textView.setTypeface(aVar.x());
c4.d.setText(str);
c4.b.setVisibility(0);
c4.b.setTypeface(aVar.x());
c4.b.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
OldVersionsActivity.x3(OldVersionsActivity.this, compoundButton, z);
}
});
c4.e.setTypeface(aVar.w());
c4.e.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
OldVersionsActivity.y3(OldVersionsActivity.this, c0965p, view);
}
});
c4.c.setTypeface(aVar.w());
c4.c.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
OldVersionsActivity.z3(C0599p.this, this, view);
}
});
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setView(c4.getRoot());
builder.setCancelable(false);
if (UptodownApp.F.M()) {
return;
}
K2(builder.create());
if (isFinishing()) {
return;
}
AlertDialog k22 = k2();
kotlin.jvm.internal.m.b(k22);
Window window = k22.getWindow();
if (window != null) {
window.setBackgroundDrawable(new ColorDrawable(0));
}
AlertDialog k23 = k2();
kotlin.jvm.internal.m.b(k23);
k23.show();
}
public static final void x3(OldVersionsActivity oldVersionsActivity, CompoundButton compoundButton, boolean z) {
com.uptodown.activities.preferences.a.a.a1(oldVersionsActivity, !z);
}
public static final void y3(OldVersionsActivity oldVersionsActivity, C0965p c0965p, View view) {
oldVersionsActivity.N3(c0965p);
AlertDialog k22 = oldVersionsActivity.k2();
if (k22 != null) {
k22.dismiss();
}
}
public static final void z3(C0599p c0599p, OldVersionsActivity oldVersionsActivity, View view) {
if (c0599p.b.isChecked()) {
com.uptodown.activities.preferences.a.a.a1(oldVersionsActivity, true);
}
AlertDialog k22 = oldVersionsActivity.k2();
if (k22 != null) {
k22.dismiss();
}
}
public final void G3(String packageName) {
kotlin.jvm.internal.m.e(packageName, "packageName");
C3().j(this, packageName);
}
public final void I3(int i4) {
Object value = C3().d().getValue();
kotlin.jvm.internal.m.b(value);
if (((C0955f) value).P() != null) {
Object value2 = C3().d().getValue();
kotlin.jvm.internal.m.b(value2);
ArrayList P = ((C0955f) value2).P();
kotlin.jvm.internal.m.b(P);
if (i4 < P.size()) {
Object value3 = C3().d().getValue();
kotlin.jvm.internal.m.b(value3);
ArrayList P3 = ((C0955f) value3).P();
kotlin.jvm.internal.m.b(P3);
long h4 = ((C0940A) P3.get(i4)).h();
if (C3().c().getValue() != null) {
Object value4 = C3().c().getValue();
kotlin.jvm.internal.m.b(value4);
if (h4 == ((C0953d) value4).A()) {
kotlin.jvm.internal.F f4 = kotlin.jvm.internal.F.a;
String string = getString(2131951712);
kotlin.jvm.internal.m.d(string, "getString(...)");
Object value5 = C3().d().getValue();
kotlin.jvm.internal.m.b(value5);
ArrayList P4 = ((C0955f) value5).P();
kotlin.jvm.internal.m.b(P4);
String format = String.format(string, Arrays.copyOf(new Object[]{((C0940A) P4.get(i4)).i()}, 1));
kotlin.jvm.internal.m.d(format, "format(...)");
r0(format);
return;
}
}
v.a aVar = u2.v.v;
Context applicationContext = getApplicationContext();
kotlin.jvm.internal.m.d(applicationContext, "getApplicationContext(...)");
u2.v a4 = aVar.a(applicationContext);
a4.a();
Object value6 = C3().d().getValue();
kotlin.jvm.internal.m.b(value6);
String R = ((C0955f) value6).R();
kotlin.jvm.internal.m.b(R);
C0965p g0 = a4.g0(R, h4);
if (g0 == null) {
C0965p c0965p = new C0965p();
Object value7 = C3().d().getValue();
kotlin.jvm.internal.m.b(value7);
Object value8 = C3().d().getValue();
kotlin.jvm.internal.m.b(value8);
ArrayList P5 = ((C0955f) value8).P();
kotlin.jvm.internal.m.b(P5);
Object obj = P5.get(i4);
kotlin.jvm.internal.m.d(obj, "get(...)");
c0965p.d((C0955f) value7, (C0940A) obj);
Object value9 = C3().d().getValue();
kotlin.jvm.internal.m.b(value9);
ArrayList P6 = ((C0955f) value9).P();
kotlin.jvm.internal.m.b(P6);
Object obj2 = P6.get(i4);
kotlin.jvm.internal.m.d(obj2, "get(...)");
L3((C0940A) obj2, c0965p);
C0462q c0462q = this.L;
if (c0462q != null) {
c0462q.notifyItemChanged(i4);
}
} else if (DownloadWorker.d.l(g0)) {
s3(this, g0);
} else {
File n = g0.n();
if (!g0.f() || g0.o().isEmpty() || n == null || !n.exists()) {
g0.S(this);
C0462q c0462q2 = this.L;
if (c0462q2 != null) {
c0462q2.notifyItemChanged(i4);
}
} else {
M3(g0);
}
}
a4.i();
}
}
}
public final void J3(int i4) {
Object value = C3().d().getValue();
kotlin.jvm.internal.m.b(value);
if (((C0955f) value).P() != null) {
Object value2 = C3().d().getValue();
kotlin.jvm.internal.m.b(value2);
ArrayList P = ((C0955f) value2).P();
kotlin.jvm.internal.m.b(P);
if (i4 < P.size()) {
Object value3 = C3().d().getValue();
kotlin.jvm.internal.m.b(value3);
ArrayList P3 = ((C0955f) value3).P();
C0940A c0940a = P3 != null ? (C0940A) P3.get(i4) : null;
kotlin.jvm.internal.m.b(c0940a);
K3(c0940a);
}
}
}
public final Object S3(String str, V2.d dVar) {
Object g4 = o3.g.g(o3.Y.c(), new k(str, null), dVar);
return g4 == W2.b.c() ? g4 : R2.s.a;
}
@Override
protected void onCreate(Bundle bundle) {
Bundle extras;
Parcelable parcelable;
Object parcelable2;
Parcelable parcelable3;
Object parcelable4;
super.onCreate(bundle);
setContentView(A3().getRoot());
C3().k(true);
Intent intent = getIntent();
if (intent != null && (extras = intent.getExtras()) != null) {
if (extras.containsKey(MBridgeConstans.DYNAMIC_VIEW_WX_APP)) {
r3.t c4 = C3().c();
if (Build.VERSION.SDK_INT >= 33) {
parcelable4 = extras.getParcelable(MBridgeConstans.DYNAMIC_VIEW_WX_APP, C0953d.class);
parcelable3 = (Parcelable) parcelable4;
} else {
parcelable3 = extras.getParcelable(MBridgeConstans.DYNAMIC_VIEW_WX_APP);
}
c4.setValue(parcelable3);
}
if (extras.containsKey("appInfo")) {
r3.t d4 = C3().d();
if (Build.VERSION.SDK_INT >= 33) {
parcelable2 = extras.getParcelable("appInfo", C0955f.class);
parcelable = (Parcelable) parcelable2;
} else {
parcelable = extras.getParcelable("appInfo");
}
d4.setValue(parcelable);
}
}
D3();
o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), o3.Y.c(), (o3.L) null, new f(null), 2, (Object) null);
}
@Override
protected void onResume() {
super.onResume();
B3();
}
}