导航菜单

页面标题

页面副标题

Uptodown App Store v6.80 - VirusTotalReport.java 源代码

正在查看: Uptodown App Store v6.80 应用的 VirusTotalReport.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.uptodown.activities;

import N1.k;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.activity.ComponentActivity;
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 c2.e1;
import com.uptodown.UptodownApp;
import com.uptodown.activities.VirusTotalReport;
import com.uptodown.activities.c0;
import g2.C0948I;
import g2.C0953d;
import g2.C0955f;
import g2.C0963n;
import g2.C0970v;
import java.util.ArrayList;
import java.util.Arrays;
import kotlin.jvm.internal.AbstractC1009g;
import u2.H;

public final class VirusTotalReport extends AbstractC0740a {
    public static final a L = new a(null);
    private final R2.g J = R2.h.a(new d3.a() {
        @Override
        public final Object invoke() {
            c2.e1 l32;
            l32 = VirusTotalReport.l3(VirusTotalReport.this);
            return l32;
        }
    });
    private final R2.g K = new ViewModelLazy(kotlin.jvm.internal.D.b(c0.class), new d(this), new c(this), new e(null, this));

    public static final class a {
        public a(AbstractC1009g abstractC1009g) {
            this();
        }

        private a() {
        }
    }

    static final class b extends kotlin.coroutines.jvm.internal.l implements d3.p {
        int a;

        static final class a implements r3.f {
            final VirusTotalReport a;

            a(VirusTotalReport virusTotalReport) {
                this.a = virusTotalReport;
            }

            public final Object emit(u2.H h, V2.d dVar) {
                if (h instanceof H.a) {
                    this.a.m3().k.setVisibility(0);
                } else if (h instanceof H.c) {
                    if (((c0.a) ((H.c) h).a()).a() != null) {
                        this.a.v3();
                        this.a.w3();
                        this.a.x3();
                    } else {
                        this.a.m3().p.setVisibility(8);
                        this.a.m3().v.setVisibility(0);
                        this.a.m3().k.setVisibility(8);
                    }
                } else if (!(h instanceof H.b)) {
                    throw new R2.k();
                }
                return R2.s.a;
            }
        }

        b(V2.d dVar) {
            super(2, dVar);
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return VirusTotalReport.this.new b(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 = VirusTotalReport.this.p3().e();
                a aVar = new a(VirusTotalReport.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 ((b) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

    public static final class c extends kotlin.jvm.internal.n implements d3.a {
        final ComponentActivity a;

        public c(ComponentActivity componentActivity) {
            super(0);
            this.a = componentActivity;
        }

        @Override
        public final ViewModelProvider.Factory invoke() {
            return this.a.getDefaultViewModelProviderFactory();
        }
    }

    public static final class d extends kotlin.jvm.internal.n implements d3.a {
        final ComponentActivity a;

        public d(ComponentActivity componentActivity) {
            super(0);
            this.a = componentActivity;
        }

        @Override
        public final ViewModelStore invoke() {
            return this.a.getViewModelStore();
        }
    }

    public static final class e extends kotlin.jvm.internal.n implements d3.a {
        final d3.a a;
        final ComponentActivity b;

        public e(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;
        }
    }

    public static final e1 l3(VirusTotalReport virusTotalReport) {
        return e1.c(virusTotalReport.getLayoutInflater());
    }

    public final e1 m3() {
        return (e1) this.J.getValue();
    }

    private final String n3() {
        kotlin.jvm.internal.F f = kotlin.jvm.internal.F.a;
        String string = getString(2131952846);
        kotlin.jvm.internal.m.d(string, "getString(...)");
        String format = String.format(string, Arrays.copyOf(new Object[]{getString(2131952517), getString(2131952100)}, 2));
        kotlin.jvm.internal.m.d(format, "format(...)");
        String string2 = getString(2131951707);
        kotlin.jvm.internal.m.d(string2, "getString(...)");
        String format2 = String.format(string2, Arrays.copyOf(new Object[]{getString(2131951706), "packagename"}, 2));
        kotlin.jvm.internal.m.d(format2, "format(...)");
        return format + format2;
    }

    private final void o3() {
        c0 p3 = p3();
        Object value = p3().c().getValue();
        kotlin.jvm.internal.m.b(value);
        p3.b(this, ((C0955f) value).A(), ((Number) p3().f().getValue()).longValue(), ((Boolean) p3().i().getValue()).booleanValue());
    }

    public final c0 p3() {
        return (c0) this.K.getValue();
    }

    private final void q3() {
        Drawable drawable = ContextCompat.getDrawable(this, N1.e.c);
        if (drawable != null) {
            m3().q.setNavigationIcon(drawable);
            m3().q.setNavigationContentDescription(getString(2131951721));
        }
        m3().q.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                VirusTotalReport.r3(VirusTotalReport.this, view);
            }
        });
        TextView textView = m3().F;
        k.a aVar = N1.k.g;
        textView.setTypeface(aVar.w());
        if (p3().c().getValue() != null) {
            Object value = p3().c().getValue();
            kotlin.jvm.internal.m.b(value);
            String G = ((C0955f) value).G();
            if (G == null || G.length() == 0) {
                m3().b.b.setImageDrawable(ContextCompat.getDrawable(this, 2131231390));
            } else {
                com.squareup.picasso.s h = com.squareup.picasso.s.h();
                Object value2 = p3().c().getValue();
                kotlin.jvm.internal.m.b(value2);
                h.l(((C0955f) value2).G()).n(UptodownApp.F.h0(this)).i(m3().b.b);
            }
        } else if (p3().d().getValue() != null) {
            u2.I i = u2.I.a;
            Object value3 = p3().d().getValue();
            kotlin.jvm.internal.m.b(value3);
            m3().b.b.setImageDrawable(i.k(this, ((C0953d) value3).o()));
        }
        m3().b.c.setTypeface(aVar.w());
        if (p3().c().getValue() != null) {
            TextView textView2 = m3().b.c;
            Object value4 = p3().c().getValue();
            kotlin.jvm.internal.m.b(value4);
            textView2.setText(((C0955f) value4).M());
        } else if (p3().d().getValue() != null) {
            TextView textView3 = m3().b.c;
            Object value5 = p3().d().getValue();
            kotlin.jvm.internal.m.b(value5);
            textView3.setText(((C0953d) value5).m());
        }
        m3().b.d.setTypeface(aVar.x());
        CharSequence charSequence = (CharSequence) p3().g().getValue();
        if (charSequence != null && charSequence.length() != 0) {
            m3().b.d.setText((CharSequence) p3().g().getValue());
        } else if (p3().c().getValue() != null) {
            TextView textView4 = m3().b.d;
            Object value6 = p3().c().getValue();
            kotlin.jvm.internal.m.b(value6);
            textView4.setText(((C0955f) value6).z0());
        } else if (p3().d().getValue() != null) {
            TextView textView5 = m3().b.d;
            Object value7 = p3().d().getValue();
            kotlin.jvm.internal.m.b(value7);
            textView5.setText(((C0953d) value7).B());
        }
        m3().s.setTypeface(aVar.x());
        m3().r.setTypeface(aVar.w());
        m3().r.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                VirusTotalReport.s3(VirusTotalReport.this, view);
            }
        });
        m3().C.setTypeface(aVar.x());
        m3().B.setTypeface(aVar.w());
        m3().E.setTypeface(aVar.x());
        m3().D.setTypeface(aVar.w());
        m3().y.setTypeface(aVar.x());
        m3().x.setTypeface(aVar.x());
        m3().w.setTypeface(aVar.x());
        m3().G.setTypeface(aVar.x());
        m3().v.setTypeface(aVar.x());
        m3().k.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                VirusTotalReport.t3(view);
            }
        });
    }

    public static final void r3(VirusTotalReport virusTotalReport, View view) {
        virusTotalReport.getOnBackPressedDispatcher().onBackPressed();
    }

    public static final void s3(VirusTotalReport virusTotalReport, View view) {
        if (virusTotalReport.p3().h().getValue() != null) {
            Object value = virusTotalReport.p3().h().getValue();
            kotlin.jvm.internal.m.b(value);
            virusTotalReport.G2(((C0948I) value).f());
        }
    }

    public static final void t3(View view) {
    }

    public static final void u3(VirusTotalReport virusTotalReport, View view) {
        u2.p pVar = new u2.p();
        String string = virusTotalReport.getString(2131952792);
        kotlin.jvm.internal.m.d(string, "getString(...)");
        pVar.p(virusTotalReport, string, null);
    }

    public final void v3() {
        C0948I c0948i = (C0948I) p3().h().getValue();
        String f = c0948i != null ? c0948i.f() : null;
        if (f == null || f.length() == 0) {
            C0955f c0955f = (C0955f) p3().c().getValue();
            String l02 = c0955f != null ? c0955f.l0() : null;
            if (l02 == null || l02.length() == 0) {
                m3().n.setVisibility(8);
            } else {
                TextView textView = m3().C;
                Object value = p3().c().getValue();
                kotlin.jvm.internal.m.b(value);
                textView.setText(((C0955f) value).l0());
            }
        } else {
            TextView textView2 = m3().C;
            Object value2 = p3().h().getValue();
            kotlin.jvm.internal.m.b(value2);
            textView2.setText(((C0948I) value2).f());
        }
        C0955f c0955f2 = (C0955f) p3().c().getValue();
        String K = c0955f2 != null ? c0955f2.K() : null;
        if (K == null || K.length() == 0) {
            TextView textView3 = m3().E;
            C0953d c0953d = (C0953d) p3().d().getValue();
            textView3.setText(c0953d != null ? c0953d.k() : null);
        } else {
            TextView textView4 = m3().E;
            C0955f c0955f3 = (C0955f) p3().c().getValue();
            textView4.setText(c0955f3 != null ? c0955f3.K() : null);
        }
        m3().k.setVisibility(8);
    }

    public final void w3() {
        throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.VirusTotalReport.w3():void");
    }

    public final void x3() {
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        layoutParams.setMargins(0, (int) getResources().getDimension(2131166021), 0, 0);
        if (p3().h().getValue() != null) {
            Object value = p3().h().getValue();
            kotlin.jvm.internal.m.b(value);
            if (((C0948I) value).b() != null) {
                Object value2 = p3().h().getValue();
                kotlin.jvm.internal.m.b(value2);
                ArrayList b4 = ((C0948I) value2).b();
                kotlin.jvm.internal.m.b(b4);
                if (b4.size() > 0) {
                    Object value3 = p3().h().getValue();
                    kotlin.jvm.internal.m.b(value3);
                    ArrayList b5 = ((C0948I) value3).b();
                    kotlin.jvm.internal.m.b(b5);
                    int size = b5.size();
                    for (int i = 0; i < size; i++) {
                        View inflate = getLayoutInflater().inflate(2131558819, (ViewGroup) m3().i, false);
                        kotlin.jvm.internal.m.c(inflate, "null cannot be cast to non-null type android.widget.RelativeLayout");
                        RelativeLayout relativeLayout = (RelativeLayout) inflate;
                        relativeLayout.setLayoutParams(layoutParams);
                        TextView textView = (TextView) relativeLayout.findViewById(2131363598);
                        TextView textView2 = (TextView) relativeLayout.findViewById(2131364415);
                        Object value4 = p3().h().getValue();
                        kotlin.jvm.internal.m.b(value4);
                        ArrayList b6 = ((C0948I) value4).b();
                        kotlin.jvm.internal.m.b(b6);
                        textView.setText(((C0970v) b6.get(i)).b());
                        Object value5 = p3().h().getValue();
                        kotlin.jvm.internal.m.b(value5);
                        ArrayList b7 = ((C0948I) value5).b();
                        kotlin.jvm.internal.m.b(b7);
                        textView2.setText(((C0970v) b7.get(i)).c());
                        m3().i.addView(relativeLayout);
                    }
                }
            }
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        Parcelable parcelable;
        Object parcelable2;
        Parcelable parcelable3;
        Object parcelable4;
        Parcelable parcelable5;
        Object parcelable6;
        super.onCreate(bundle);
        setContentView(m3().getRoot());
        Intent intent = getIntent();
        if (intent != null) {
            Bundle extras = intent.getExtras();
            if (extras != null && extras.containsKey("appInfo")) {
                r3.t c4 = p3().c();
                if (Build.VERSION.SDK_INT >= 33) {
                    parcelable6 = extras.getParcelable("appInfo", C0955f.class);
                    parcelable5 = (Parcelable) parcelable6;
                } else {
                    parcelable5 = extras.getParcelable("appInfo");
                }
                c4.setValue(parcelable5);
            }
            if (extras != null && extras.containsKey("app_selected")) {
                r3.t d4 = p3().d();
                if (Build.VERSION.SDK_INT >= 33) {
                    parcelable4 = extras.getParcelable("app_selected", C0953d.class);
                    parcelable3 = (Parcelable) parcelable4;
                } else {
                    parcelable3 = extras.getParcelable("app_selected");
                }
                d4.setValue(parcelable3);
            }
            if (extras != null && extras.containsKey("old_version_name")) {
                p3().g().setValue(extras.getString("old_version_name"));
            }
            if (extras != null && extras.containsKey("oldVersionId")) {
                p3().i().setValue(Boolean.TRUE);
                p3().f().setValue(Long.valueOf(extras.getLong("oldVersionId")));
            }
            if (extras != null && extras.containsKey("appReportVT")) {
                r3.t h = p3().h();
                if (Build.VERSION.SDK_INT >= 33) {
                    parcelable2 = extras.getParcelable("appReportVT", C0948I.class);
                    parcelable = (Parcelable) parcelable2;
                } else {
                    parcelable = extras.getParcelable("appReportVT");
                }
                h.setValue(parcelable);
            }
            if (extras != null && extras.containsKey("isVirusTotalReportAvaialable")) {
                p3().j().setValue(Boolean.valueOf(extras.getBoolean("isVirusTotalReportAvaialable")));
            }
        }
        q3();
        if (p3().h().getValue() != null) {
            w3();
            x3();
            v3();
        } else if (((Boolean) p3().j().getValue()).booleanValue()) {
            o3();
        } else {
            m3().j.setVisibility(8);
            m3().z.setVisibility(0);
            m3().z.setTypeface(N1.k.g.x());
            m3().z.setText(C0963n.f.h(this, n3()));
            m3().z.setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    VirusTotalReport.u3(VirusTotalReport.this, view);
                }
            });
            v3();
        }
        o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), o3.Y.c(), (o3.L) null, new b(null), 2, (Object) null);
    }
}