正在查看: Uptodown App Store v6.80 应用的 SecurityActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Uptodown App Store v6.80 应用的 SecurityActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uptodown.activities;
import J1.AbstractC0355q2;
import N1.k;
import android.app.AlertDialog;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.widget.TextView;
import androidx.activity.ComponentActivity;
import androidx.appcompat.app.AppCompatActivity;
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.DefaultItemAnimator;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.SimpleItemAnimator;
import b2.C0560i;
import c2.D0;
import com.mbridge.msdk.MBridgeConstans;
import com.uptodown.UptodownApp;
import com.uptodown.activities.K;
import com.uptodown.activities.SecurityActivity;
import f2.InterfaceC0917H;
import f2.InterfaceC0919b;
import f2.InterfaceC0934q;
import g2.C0953d;
import g2.C0955f;
import java.util.ArrayList;
import o3.E0;
import u2.H;
public final class SecurityActivity extends AbstractC0355q2 {
private boolean X;
private M1.D Y;
private final R2.g V = R2.h.a(new d3.a() {
@Override
public final Object invoke() {
c2.D0 S4;
S4 = SecurityActivity.S4(SecurityActivity.this);
return S4;
}
});
private final R2.g W = new ViewModelLazy(kotlin.jvm.internal.D.b(K.class), new g(this), new f(this), new h(null, this));
private j Z = new j();
private final b f259m0 = new b();
static final class a extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
final D0 c;
static final class C0183a extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
final D0 b;
C0183a(D0 d0, V2.d dVar) {
super(2, dVar);
this.b = d0;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return new C0183a(this.b, 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);
this.b.c.setVisibility(0);
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((C0183a) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
a(D0 d0, V2.d dVar) {
super(2, dVar);
this.c = d0;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return SecurityActivity.this.new a(this.c, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
Object c = W2.b.c();
int i = this.a;
if (i == 0) {
R2.n.b(obj);
E0 c4 = o3.Y.c();
C0183a c0183a = new C0183a(this.c, null);
this.a = 1;
if (o3.g.g(c4, c0183a, this) == c) {
return c;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
}
SecurityActivity.this.r4();
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((a) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
public static final class b implements InterfaceC0919b {
b() {
}
@Override
public void a(int i) {
if (!UptodownApp.F.a0() || SecurityActivity.this.X) {
return;
}
M1.D d = SecurityActivity.this.Y;
kotlin.jvm.internal.m.b(d);
if (d.b().get(i) instanceof C0953d) {
M1.D d4 = SecurityActivity.this.Y;
kotlin.jvm.internal.m.b(d4);
Object obj = d4.b().get(i);
kotlin.jvm.internal.m.c(obj, "null cannot be cast to non-null type com.uptodown.models.App");
SecurityActivity.this.T4((C0953d) obj);
}
}
@Override
public void b(int i) {
if (!UptodownApp.F.a0() || SecurityActivity.this.X) {
return;
}
M1.D d = SecurityActivity.this.Y;
kotlin.jvm.internal.m.b(d);
if (d.b().get(i) instanceof C0953d) {
M1.D d4 = SecurityActivity.this.Y;
kotlin.jvm.internal.m.b(d4);
Object obj = d4.b().get(i);
kotlin.jvm.internal.m.c(obj, "null cannot be cast to non-null type com.uptodown.models.App");
C0953d c0953d = (C0953d) obj;
if (c0953d.b() > 0) {
SecurityActivity.this.D2(c0953d.b());
}
}
}
}
static final class c extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
static final class a implements r3.f {
final SecurityActivity a;
a(SecurityActivity securityActivity) {
this.a = securityActivity;
}
public final Object emit(u2.H h, V2.d dVar) {
if (h instanceof H.a) {
this.a.Y4().c.setVisibility(0);
} else if (h instanceof H.c) {
H.c cVar = (H.c) h;
if (((K.a) cVar.a()).a().isEmpty()) {
this.a.Y4().d.setVisibility(0);
this.a.Y4().e.setVisibility(8);
this.a.Y4().h.setText(this.a.getString(2131952780, String.valueOf(new u2.p().l(com.uptodown.activities.preferences.a.a.m(this.a)))));
} else {
this.a.Y4().e.setVisibility(0);
this.a.Y4().d.setVisibility(8);
this.a.h5(((K.a) cVar.a()).a());
}
this.a.Y4().c.setVisibility(8);
} else if (!(h instanceof H.b)) {
throw new R2.k();
}
return R2.s.a;
}
}
c(V2.d dVar) {
super(2, dVar);
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return SecurityActivity.this.new c(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 b = SecurityActivity.this.Z4().b();
a aVar = new a(SecurityActivity.this);
this.a = 1;
if (b.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 ((c) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
public static final class d implements InterfaceC0934q {
final C0953d b;
d(C0953d c0953d) {
this.b = c0953d;
}
@Override
public void c(int i) {
?? r4 = SecurityActivity.this;
String string = r4.getString(2131952581, this.b.m());
kotlin.jvm.internal.m.d(string, "getString(...)");
r4.r0(string);
}
@Override
public void d(C0955f appInfo) {
kotlin.jvm.internal.m.e(appInfo, "appInfo");
if (!appInfo.c()) {
?? r02 = SecurityActivity.this;
String string = r02.getString(2131952581, appInfo.M());
kotlin.jvm.internal.m.d(string, "getString(...)");
r02.r0(string);
return;
}
Intent intent = new Intent(SecurityActivity.this.getApplicationContext(), (Class<?>) OldVersionsActivity.class);
intent.putExtra(MBridgeConstans.DYNAMIC_VIEW_WX_APP, this.b);
intent.putExtra("appInfo", appInfo);
AppCompatActivity appCompatActivity = SecurityActivity.this;
appCompatActivity.startActivity(intent, UptodownApp.F.a(appCompatActivity));
}
}
static final class e extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
e(V2.d dVar) {
super(2, dVar);
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return SecurityActivity.this.new e(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);
SecurityActivity.this.Y4().c.setVisibility(8);
SecurityActivity.this.Y4().h.setText(SecurityActivity.this.getString(2131952780, String.valueOf(new u2.p().l(com.uptodown.activities.preferences.a.a.m(SecurityActivity.this)))));
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((e) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
public static final class f extends kotlin.jvm.internal.n implements d3.a {
final ComponentActivity a;
public f(ComponentActivity componentActivity) {
super(0);
this.a = componentActivity;
}
@Override
public final ViewModelProvider.Factory invoke() {
return this.a.getDefaultViewModelProviderFactory();
}
}
public static final class g extends kotlin.jvm.internal.n implements d3.a {
final ComponentActivity a;
public g(ComponentActivity componentActivity) {
super(0);
this.a = componentActivity;
}
@Override
public final ViewModelStore invoke() {
return this.a.getViewModelStore();
}
}
public static final class h extends kotlin.jvm.internal.n implements d3.a {
final d3.a a;
final ComponentActivity b;
public h(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 i extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
i(V2.d dVar) {
super(2, dVar);
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return SecurityActivity.this.new i(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);
SecurityActivity.this.g5();
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((i) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
public static final class j implements InterfaceC0917H {
j() {
}
@Override
public void a() {
}
@Override
public void b() {
SecurityActivity.this.r4();
}
}
public static final D0 S4(SecurityActivity securityActivity) {
return D0.c(securityActivity.getLayoutInflater());
}
public final void T4(final C0953d c0953d) {
if (isFinishing() || c0953d == null) {
return;
}
c2.r c4 = c2.r.c(getLayoutInflater());
kotlin.jvm.internal.m.d(c4, "inflate(...)");
K2(new AlertDialog.Builder(this).setView(c4.getRoot()).create());
TextView textView = c4.c;
k.a aVar = N1.k.g;
textView.setTypeface(aVar.w());
c4.c.setText(c0953d.m());
if (c0953d.o() == null || c0953d.k() == null || c0953d.b() <= 0) {
c4.b.setVisibility(8);
c4.f.setVisibility(8);
c4.d.setVisibility(8);
} else {
c4.b.setTypeface(aVar.x());
c4.b.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SecurityActivity.U4(SecurityActivity.this, c0953d, view);
}
});
c4.f.setTypeface(aVar.x());
c4.f.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SecurityActivity.V4(SecurityActivity.this, c0953d, view);
}
});
c4.d.setTypeface(aVar.x());
c4.d.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SecurityActivity.W4(SecurityActivity.this, c0953d, view);
}
});
}
if (m3.m.p(getPackageName(), c0953d.o(), true)) {
c4.e.setVisibility(8);
} else {
c4.e.setTypeface(aVar.x());
c4.e.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SecurityActivity.X4(C0953d.this, this, view);
}
});
}
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 U4(SecurityActivity securityActivity, C0953d c0953d, View view) {
securityActivity.D2(c0953d.b());
AlertDialog k22 = securityActivity.k2();
kotlin.jvm.internal.m.b(k22);
k22.dismiss();
}
public static final void V4(SecurityActivity securityActivity, C0953d c0953d, View view) {
securityActivity.G2(c0953d.r());
AlertDialog k22 = securityActivity.k2();
kotlin.jvm.internal.m.b(k22);
k22.dismiss();
}
public static final void W4(SecurityActivity securityActivity, C0953d c0953d, View view) {
securityActivity.f5(c0953d);
AlertDialog k22 = securityActivity.k2();
kotlin.jvm.internal.m.b(k22);
k22.dismiss();
}
public static final void X4(C0953d c0953d, SecurityActivity securityActivity, View view) {
if (c0953d.o() != null) {
N1.j jVar = new N1.j(securityActivity);
String o = c0953d.o();
kotlin.jvm.internal.m.b(o);
jVar.h(o);
}
AlertDialog k22 = securityActivity.k2();
kotlin.jvm.internal.m.b(k22);
k22.dismiss();
}
public final D0 Y4() {
return (D0) this.V.getValue();
}
public final K Z4() {
return (K) this.W.getValue();
}
private final void a5() {
setContentView(Y4().getRoot());
Drawable drawable = ContextCompat.getDrawable(this, N1.e.c);
if (drawable != null) {
Y4().f.setNavigationIcon(drawable);
Y4().f.setNavigationContentDescription(getString(2131951721));
}
final D0 Y4 = Y4();
Y4.f.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SecurityActivity.b5(SecurityActivity.this, view);
}
});
TextView textView = Y4.j;
k.a aVar = N1.k.g;
textView.setTypeface(aVar.w());
Y4.e.setLayoutManager(new LinearLayoutManager(this, 1, false));
Y4.e.setItemAnimator(new DefaultItemAnimator());
SimpleItemAnimator itemAnimator = Y4.e.getItemAnimator();
kotlin.jvm.internal.m.b(itemAnimator);
itemAnimator.setSupportsChangeAnimations(false);
Y4.e.addItemDecoration(new w2.l((int) getResources().getDimension(2131166020), 0));
Y4.c.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SecurityActivity.c5(view);
}
});
Y4.i.setTypeface(aVar.w());
Y4.h.setTypeface(aVar.x());
Y4.g.setTypeface(aVar.w());
Y4.g.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SecurityActivity.d5(SecurityActivity.this, Y4, view);
}
});
}
public static final void b5(SecurityActivity securityActivity, View view) {
securityActivity.finish();
}
public static final void c5(View view) {
}
public static final void d5(SecurityActivity securityActivity, D0 d0, View view) {
if (UptodownApp.F.a0()) {
o3.g.d(LifecycleOwnerKt.getLifecycleScope(securityActivity), o3.Y.b(), (o3.L) null, securityActivity.new a(d0, null), 2, (Object) null);
}
}
private final void e5() {
Z4().a(this);
}
private final void f5(C0953d c0953d) {
new C0560i(this, c0953d.b(), new d(c0953d), LifecycleOwnerKt.getLifecycleScope(this));
}
public final void h5(ArrayList arrayList) {
M1.D d4 = this.Y;
if (d4 != null) {
kotlin.jvm.internal.m.b(d4);
d4.c(arrayList);
return;
}
b bVar = this.f259m0;
j jVar = this.Z;
kotlin.jvm.internal.m.b(jVar);
this.Y = new M1.D(arrayList, this, bVar, jVar);
Y4().e.setAdapter(this.Y);
}
public final void g5() {
if (Y4().c.getVisibility() == 8) {
r4();
e5();
}
}
public final void i5() {
o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), o3.Y.c(), (o3.L) null, new i(null), 2, (Object) null);
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
a5();
o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), o3.Y.c(), (o3.L) null, new c(null), 2, (Object) null);
}
public boolean onKeyDown(int i4, KeyEvent event) {
kotlin.jvm.internal.m.e(event, "event");
if (i4 != 82) {
return super.onKeyDown(i4, event);
}
Y4().f.showOverflowMenu();
return true;
}
@Override
protected void onResume() {
super.onResume();
r4();
u2.F.a.h(this);
}
@Override
protected void y4() {
e5();
o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), o3.Y.c(), (o3.L) null, new e(null), 2, (Object) null);
}
}