导航菜单

页面标题

页面副标题

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

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

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


package com.uptodown.activities;

import J1.AbstractC0355q2;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PermissionInfo;
import android.graphics.Typeface;
import android.text.SpannableString;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.LifecycleOwnerKt;
import b2.C0560i;
import c2.C0581g;
import c2.C0582g0;
import com.uptodown.UptodownApp;
import com.uptodown.activities.AppInstalledDetailsActivity;
import f2.InterfaceC0934q;
import g2.C0942C;
import g2.C0953d;
import g2.C0955f;
import g2.C0957h;
import g2.C0965p;
import java.util.ArrayList;
import java.util.Iterator;
import kotlin.jvm.internal.AbstractC1004b;
import kotlin.jvm.internal.AbstractC1009g;
import o3.E0;
import u2.v;
import w2.C1254c;

public final class AppInstalledDetailsActivity extends AbstractC0355q2 {
    public static final a Z = new a(null);
    private final R2.g V = R2.h.a(new d3.a() {
        @Override
        public final Object invoke() {
            C0581g a5;
            a5 = AppInstalledDetailsActivity.a5(AppInstalledDetailsActivity.this);
            return a5;
        }
    });
    private C0953d W;
    private C0955f X;
    private ArrayList Y;

    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 extends kotlin.coroutines.jvm.internal.l implements d3.p {
            int a;
            final AppInstalledDetailsActivity b;
            final g2.P c;
            final C0965p d;

            a(AppInstalledDetailsActivity appInstalledDetailsActivity, g2.P p, C0965p c0965p, V2.d dVar) {
                super(2, dVar);
                this.b = appInstalledDetailsActivity;
                this.c = p;
                this.d = c0965p;
            }

            @Override
            public final V2.d create(Object obj, V2.d dVar) {
                return new a(this.b, this.c, this.d, 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.e5().f206p0.setTypeface(N1.k.g.w());
                this.b.s5(this.c.h());
                C0965p c0965p = this.d;
                if (c0965p == null || !c0965p.f()) {
                    this.b.e5().f206p0.setText(this.b.getString(2131952770));
                    TextView tvUpdateAida = this.b.e5().f206p0;
                    kotlin.jvm.internal.m.d(tvUpdateAida, "tvUpdateAida");
                    w2.v.a(tvUpdateAida);
                } else {
                    this.b.e5().f206p0.setText(this.b.getString(2131951657));
                    TextView tvUpdateAida2 = this.b.e5().f206p0;
                    kotlin.jvm.internal.m.d(tvUpdateAida2, "tvUpdateAida");
                    w2.v.d(tvUpdateAida2);
                }
                if (UptodownApp.F.P(this.c.h())) {
                    this.b.v5();
                    this.b.e5().a0.setText(this.b.getString(2131952659));
                }
                return R2.s.a;
            }

            @Override
            public final Object invoke(o3.J j, V2.d dVar) {
                return ((a) create(j, dVar)).invokeSuspend(R2.s.a);
            }
        }

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

            C0170b(AppInstalledDetailsActivity appInstalledDetailsActivity, V2.d dVar) {
                super(2, dVar);
                this.b = appInstalledDetailsActivity;
            }

            @Override
            public final V2.d create(Object obj, V2.d dVar) {
                return new C0170b(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);
                if (!this.b.isFinishing()) {
                    ?? r3 = this.b;
                    String packageName = r3.getPackageName();
                    kotlin.jvm.internal.m.d(packageName, "getPackageName(...)");
                    r3.s5(packageName);
                }
                return R2.s.a;
            }

            @Override
            public final Object invoke(o3.J j, V2.d dVar) {
                return ((C0170b) create(j, dVar)).invokeSuspend(R2.s.a);
            }
        }

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

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return AppInstalledDetailsActivity.this.new b(dVar);
        }

        @Override
        public final java.lang.Object invokeSuspend(java.lang.Object r9) {
            throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.AppInstalledDetailsActivity.b.invokeSuspend(java.lang.Object):java.lang.Object");
        }

        @Override
        public final Object invoke(o3.J j, V2.d dVar) {
            return ((b) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

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

        c(String str, AppInstalledDetailsActivity appInstalledDetailsActivity, V2.d dVar) {
            super(2, dVar);
            this.b = str;
            this.c = appInstalledDetailsActivity;
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return new c(this.b, 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);
            if (kotlin.jvm.internal.m.a(this.b, "app_updated")) {
                this.c.g5();
            }
            return R2.s.a;
        }

        @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 {
        d() {
        }

        @Override
        public void c(int i) {
        }

        @Override
        public void d(C0955f appInfo) {
            C0957h h;
            kotlin.jvm.internal.m.e(appInfo, "appInfo");
            AppInstalledDetailsActivity.this.X = appInfo;
            if (AppInstalledDetailsActivity.this.isFinishing() || (h = appInfo.h()) == null || h.i() != 1) {
                return;
            }
            AppInstalledDetailsActivity.this.e5().V.setText(AppInstalledDetailsActivity.this.getString(2131951689));
        }
    }

    static final class e extends kotlin.coroutines.jvm.internal.d {
        Object a;
        Object b;
        int d;

        e(V2.d dVar) {
            super(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.b = obj;
            this.d |= Integer.MIN_VALUE;
            return AppInstalledDetailsActivity.this.f5(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 AppInstalledDetailsActivity.this.new f(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            PackageInfo packageInfo;
            PermissionInfo[] permissionInfoArr;
            W2.b.c();
            if (this.a != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            R2.n.b(obj);
            try {
                PackageManager packageManager = AppInstalledDetailsActivity.this.getPackageManager();
                kotlin.jvm.internal.m.d(packageManager, "getPackageManager(...)");
                C0953d c0953d = AppInstalledDetailsActivity.this.W;
                kotlin.jvm.internal.m.b(c0953d);
                String o = c0953d.o();
                kotlin.jvm.internal.m.b(o);
                packageInfo = W1.s.d(packageManager, o, 4096);
            } catch (PackageManager.NameNotFoundException unused) {
                packageInfo = null;
            }
            if (packageInfo != null && (permissionInfoArr = packageInfo.permissions) != null) {
                AppInstalledDetailsActivity.this.Y = new ArrayList();
                Iterator a = AbstractC1004b.a(permissionInfoArr);
                while (a.hasNext()) {
                    PermissionInfo permissionInfo = (PermissionInfo) a.next();
                    C0942C c0942c = new C0942C();
                    c0942c.c(String.valueOf(permissionInfo.loadDescription(AppInstalledDetailsActivity.this.getPackageManager())));
                    c0942c.d(permissionInfo.name);
                    ArrayList arrayList = AppInstalledDetailsActivity.this.Y;
                    kotlin.jvm.internal.m.b(arrayList);
                    arrayList.add(c0942c);
                }
            }
            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;

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

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return AppInstalledDetailsActivity.this.new g(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            int i;
            W2.b.c();
            if (this.a != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            R2.n.b(obj);
            if (AppInstalledDetailsActivity.this.Y != null) {
                ArrayList arrayList = AppInstalledDetailsActivity.this.Y;
                kotlin.jvm.internal.m.b(arrayList);
                if (arrayList.size() > 0) {
                    AppInstalledDetailsActivity appInstalledDetailsActivity = AppInstalledDetailsActivity.this;
                    ArrayList arrayList2 = appInstalledDetailsActivity.Y;
                    kotlin.jvm.internal.m.b(arrayList2);
                    LinearLayout llPermissionsAida = AppInstalledDetailsActivity.this.e5().s;
                    kotlin.jvm.internal.m.d(llPermissionsAida, "llPermissionsAida");
                    appInstalledDetailsActivity.r5(arrayList2, llPermissionsAida);
                    ArrayList arrayList3 = AppInstalledDetailsActivity.this.Y;
                    kotlin.jvm.internal.m.b(arrayList3);
                    i = arrayList3.size();
                    AppInstalledDetailsActivity.this.e5().Y.setText(String.valueOf(i));
                    return R2.s.a;
                }
            }
            AppInstalledDetailsActivity.this.e5().A.setVisibility(8);
            i = 0;
            AppInstalledDetailsActivity.this.e5().Y.setText(String.valueOf(i));
            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;

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

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return AppInstalledDetailsActivity.this.new h(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                AppInstalledDetailsActivity appInstalledDetailsActivity = AppInstalledDetailsActivity.this;
                this.a = 1;
                if (appInstalledDetailsActivity.f5(this) == 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 ((h) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

    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 AppInstalledDetailsActivity.this.new i(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                AppInstalledDetailsActivity appInstalledDetailsActivity = AppInstalledDetailsActivity.this;
                this.a = 1;
                if (appInstalledDetailsActivity.b5(this) == 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 ((i) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

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

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

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return AppInstalledDetailsActivity.this.new j(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                AppInstalledDetailsActivity appInstalledDetailsActivity = AppInstalledDetailsActivity.this;
                this.a = 1;
                if (appInstalledDetailsActivity.b5(this) == 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 ((j) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

    public static final class k implements InterfaceC0934q {
        final CharSequence a;
        final AppInstalledDetailsActivity b;

        k(CharSequence charSequence, AppInstalledDetailsActivity appInstalledDetailsActivity) {
            this.a = charSequence;
            this.b = appInstalledDetailsActivity;
        }

        public static final void b(AppInstalledDetailsActivity appInstalledDetailsActivity, C0955f c0955f, View view) {
            if (UptodownApp.F.a0()) {
                appInstalledDetailsActivity.D2(c0955f.e());
            }
        }

        @Override
        public void c(int i) {
        }

        @Override
        public void d(final C0955f appInfo) {
            kotlin.jvm.internal.m.e(appInfo, "appInfo");
            SpannableString a = u2.t.d.a(this.a.toString());
            float dimension = this.b.getResources().getDimension(2131166321);
            Typeface x = N1.k.g.x();
            kotlin.jvm.internal.m.b(x);
            a.setSpan(new u2.t(dimension, x, ContextCompat.getColor(this.b, 2131099703)), 0, this.a.length(), 33);
            this.b.e5().f207q0.setText(a);
            TextView textView = this.b.e5().f207q0;
            final AppInstalledDetailsActivity appInstalledDetailsActivity = this.b;
            textView.setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    AppInstalledDetailsActivity.k.b(AppInstalledDetailsActivity.this, appInfo, view);
                }
            });
        }
    }

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

        static final class a extends kotlin.coroutines.jvm.internal.l implements d3.p {
            int a;
            final int b;
            final AppInstalledDetailsActivity c;
            final String d;
            final C0965p e;

            a(int i, AppInstalledDetailsActivity appInstalledDetailsActivity, String str, C0965p c0965p, V2.d dVar) {
                super(2, dVar);
                this.b = i;
                this.c = appInstalledDetailsActivity;
                this.d = str;
                this.e = c0965p;
            }

            @Override
            public final V2.d create(Object obj, V2.d dVar) {
                return new a(this.b, this.c, this.d, this.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);
                switch (this.b) {
                    case 102:
                        ?? r9 = this.c;
                        String string = r9.getString(2131951904);
                        kotlin.jvm.internal.m.d(string, "getString(...)");
                        r9.r0(string);
                        break;
                    case 103:
                    case 106:
                        AppInstalledDetailsActivity appInstalledDetailsActivity = this.c;
                        String str = this.d;
                        kotlin.jvm.internal.m.b(str);
                        appInstalledDetailsActivity.s5(str);
                        this.c.e5().a0.setText(this.c.getString(N1.i.f161v0) + this.c.getString(2131952488));
                        this.c.e5().u.setProgress(0);
                        break;
                    case 104:
                    case 105:
                    default:
                        this.c.e5().u.setIndeterminate(false);
                        if (this.e == null) {
                            this.c.g5();
                            break;
                        } else {
                            this.c.v5();
                            this.c.e5().u.setProgress(this.e.x());
                            this.c.e5().a0.setText(this.c.getString(2131952489, kotlin.coroutines.jvm.internal.b.b(this.e.x()), new W1.i().d(this.e.z(), this.c)));
                            break;
                        }
                    case 107:
                        this.c.v5();
                        this.c.e5().a0.setText(this.c.getString(2131952659));
                        break;
                    case 108:
                        AppInstalledDetailsActivity appInstalledDetailsActivity2 = this.c;
                        String str2 = this.d;
                        kotlin.jvm.internal.m.b(str2);
                        appInstalledDetailsActivity2.s5(str2);
                        C0965p c0965p = this.e;
                        if (c0965p != null && c0965p.f()) {
                            this.c.e5().f206p0.setText(this.c.getString(2131951657));
                            TextView tvUpdateAida = this.c.e5().f206p0;
                            kotlin.jvm.internal.m.d(tvUpdateAida, "tvUpdateAida");
                            w2.v.d(tvUpdateAida);
                            break;
                        }
                        break;
                }
                return R2.s.a;
            }

            @Override
            public final Object invoke(o3.J j, V2.d dVar) {
                return ((a) create(j, dVar)).invokeSuspend(R2.s.a);
            }
        }

        l(int i, String str, V2.d dVar) {
            super(2, dVar);
            this.c = i;
            this.d = str;
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return AppInstalledDetailsActivity.this.new l(this.c, this.d, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            C0965p c0965p;
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                v.a aVar = u2.v.v;
                Context applicationContext = AppInstalledDetailsActivity.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext, "getApplicationContext(...)");
                u2.v a4 = aVar.a(applicationContext);
                a4.a();
                C0953d c0953d = AppInstalledDetailsActivity.this.W;
                kotlin.jvm.internal.m.b(c0953d);
                String o = c0953d.o();
                kotlin.jvm.internal.m.b(o);
                g2.P C02 = a4.C0(o);
                if (C02 != null) {
                    Context applicationContext2 = AppInstalledDetailsActivity.this.getApplicationContext();
                    kotlin.jvm.internal.m.d(applicationContext2, "getApplicationContext(...)");
                    c0965p = C02.b(applicationContext2);
                } else {
                    c0965p = null;
                }
                C0965p c0965p2 = c0965p;
                a4.i();
                E0 c4 = o3.Y.c();
                a aVar2 = new a(this.c, AppInstalledDetailsActivity.this, this.d, c0965p2, null);
                this.a = 1;
                if (o3.g.g(c4, aVar2, this) == 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 ((l) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

    public static final C0581g a5(AppInstalledDetailsActivity appInstalledDetailsActivity) {
        return C0581g.c(appInstalledDetailsActivity.getLayoutInflater());
    }

    public final Object b5(V2.d dVar) {
        Object g4 = o3.g.g(o3.Y.b(), new b(null), dVar);
        return g4 == W2.b.c() ? g4 : R2.s.a;
    }

    private final void d5() {
        if (this.X == null) {
            C0953d c0953d = this.W;
            kotlin.jvm.internal.m.b(c0953d);
            if (c0953d.b() > 0) {
                C0953d c0953d2 = this.W;
                kotlin.jvm.internal.m.b(c0953d2);
                new C0560i(this, c0953d2.b(), new d(), LifecycleOwnerKt.getLifecycleScope(this));
            }
        }
    }

    public final C0581g e5() {
        return (C0581g) this.V.getValue();
    }

    public final java.lang.Object f5(V2.d r7) {
        throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.AppInstalledDetailsActivity.f5(V2.d):java.lang.Object");
    }

    public final void g5() {
        C1254c c1254c = C1254c.a;
        ProgressBar pbProgressAida = e5().u;
        kotlin.jvm.internal.m.d(pbProgressAida, "pbProgressAida");
        ImageView ivLogoAida = e5().e;
        kotlin.jvm.internal.m.d(ivLogoAida, "ivLogoAida");
        c1254c.c(pbProgressAida, ivLogoAida);
        e5().q.setVisibility(8);
        e5().f206p0.setVisibility(8);
        e5().F.setVisibility(8);
        e5().f210t0.setVisibility(0);
    }

    public static final void h5(AppInstalledDetailsActivity appInstalledDetailsActivity, View view) {
        appInstalledDetailsActivity.getOnBackPressedDispatcher().onBackPressed();
    }

    public static final void i5(View view) {
    }

    private final void j5() {
        e5().I.setVisibility(8);
        e5().U.setVisibility(0);
    }

    private final void k5() {
        throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.AppInstalledDetailsActivity.k5():void");
    }

    public static final void l5(AppInstalledDetailsActivity appInstalledDetailsActivity, View view) {
        PackageManager packageManager = appInstalledDetailsActivity.getPackageManager();
        C0953d c0953d = appInstalledDetailsActivity.W;
        kotlin.jvm.internal.m.b(c0953d);
        String o = c0953d.o();
        kotlin.jvm.internal.m.b(o);
        Intent launchIntentForPackage = packageManager.getLaunchIntentForPackage(o);
        if (launchIntentForPackage != null) {
            appInstalledDetailsActivity.startActivity(launchIntentForPackage);
        }
    }

    public static final void m5(AppInstalledDetailsActivity appInstalledDetailsActivity, View view) {
        N1.j jVar = new N1.j(appInstalledDetailsActivity);
        C0953d c0953d = appInstalledDetailsActivity.W;
        kotlin.jvm.internal.m.b(c0953d);
        String o = c0953d.o();
        kotlin.jvm.internal.m.b(o);
        jVar.h(o);
        appInstalledDetailsActivity.finish();
    }

    public static final void n5(AppInstalledDetailsActivity appInstalledDetailsActivity, View view) {
        Intent intent = new Intent((Context) appInstalledDetailsActivity, (Class<?>) AppFilesActivity.class);
        intent.putExtra("appInstalled", appInstalledDetailsActivity.W);
        appInstalledDetailsActivity.startActivity(intent, UptodownApp.F.a(appInstalledDetailsActivity));
    }

    public static final void o5(final AppInstalledDetailsActivity appInstalledDetailsActivity, View view) {
        if (appInstalledDetailsActivity.e5().s.getVisibility() == 0) {
            appInstalledDetailsActivity.e5().s.setVisibility(8);
            appInstalledDetailsActivity.e5().i.setImageResource(2131231387);
        } else {
            appInstalledDetailsActivity.e5().s.setVisibility(0);
            appInstalledDetailsActivity.e5().i.setImageResource(2131231503);
            appInstalledDetailsActivity.e5().I.post(new Runnable() {
                @Override
                public final void run() {
                    AppInstalledDetailsActivity.p5(AppInstalledDetailsActivity.this);
                }
            });
        }
    }

    public static final void p5(AppInstalledDetailsActivity appInstalledDetailsActivity) {
        appInstalledDetailsActivity.e5().I.smoothScrollTo(0, appInstalledDetailsActivity.e5().A.getTop());
    }

    public static final void q5(AppInstalledDetailsActivity appInstalledDetailsActivity, View view) {
        if (appInstalledDetailsActivity.X == null) {
            appInstalledDetailsActivity.d5();
            return;
        }
        Intent intent = new Intent((Context) appInstalledDetailsActivity, (Class<?>) AppDetailActivity.class);
        intent.putExtra("appInfo", appInstalledDetailsActivity.X);
        appInstalledDetailsActivity.startActivity(intent, UptodownApp.F.a(appInstalledDetailsActivity));
    }

    public final void r5(ArrayList arrayList, LinearLayout linearLayout) {
        int size = arrayList.size();
        for (int i4 = 0; i4 < size; i4++) {
            C0582g0 c4 = C0582g0.c(LayoutInflater.from(getApplicationContext()));
            kotlin.jvm.internal.m.d(c4, "inflate(...)");
            c4.b.setTypeface(N1.k.g.x());
            c4.b.setText(((C0942C) arrayList.get(i4)).b());
            linearLayout.addView(c4.getRoot());
        }
    }

    public final void s5(final String str) {
        C1254c c1254c = C1254c.a;
        ProgressBar pbProgressAida = e5().u;
        kotlin.jvm.internal.m.d(pbProgressAida, "pbProgressAida");
        ImageView ivLogoAida = e5().e;
        kotlin.jvm.internal.m.d(ivLogoAida, "ivLogoAida");
        c1254c.c(pbProgressAida, ivLogoAida);
        e5().a0.setVisibility(0);
        e5().f210t0.setVisibility(0);
        e5().q.setVisibility(8);
        e5().f206p0.setText(getString(2131952770));
        TextView tvUpdateAida = e5().f206p0;
        kotlin.jvm.internal.m.d(tvUpdateAida, "tvUpdateAida");
        w2.v.a(tvUpdateAida);
        e5().f206p0.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AppInstalledDetailsActivity.t5(AppInstalledDetailsActivity.this, str, view);
            }
        });
        e5().f206p0.setVisibility(0);
        e5().P.setVisibility(8);
    }

    public static final void t5(AppInstalledDetailsActivity appInstalledDetailsActivity, String str, View view) {
        appInstalledDetailsActivity.t4(appInstalledDetailsActivity.W);
        if (!UptodownApp.F.P(str)) {
            appInstalledDetailsActivity.u5();
        } else {
            appInstalledDetailsActivity.v5();
            appInstalledDetailsActivity.e5().a0.setText(appInstalledDetailsActivity.getString(2131952659));
        }
    }

    private final void u5() {
        C1254c c1254c = C1254c.a;
        ProgressBar pbProgressAida = e5().u;
        kotlin.jvm.internal.m.d(pbProgressAida, "pbProgressAida");
        ImageView ivLogoAida = e5().e;
        kotlin.jvm.internal.m.d(ivLogoAida, "ivLogoAida");
        c1254c.e(pbProgressAida, ivLogoAida);
        e5().u.setIndeterminate(true);
        e5().q.setVisibility(0);
        e5().f210t0.setVisibility(0);
        e5().a0.setVisibility(8);
        e5().f206p0.setVisibility(8);
        e5().P.setVisibility(8);
        e5().F.setVisibility(0);
    }

    public final void v5() {
        C1254c c1254c = C1254c.a;
        ProgressBar pbProgressAida = e5().u;
        kotlin.jvm.internal.m.d(pbProgressAida, "pbProgressAida");
        ImageView ivLogoAida = e5().e;
        kotlin.jvm.internal.m.d(ivLogoAida, "ivLogoAida");
        c1254c.e(pbProgressAida, ivLogoAida);
        e5().q.setVisibility(0);
        e5().f210t0.setVisibility(8);
        e5().P.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AppInstalledDetailsActivity.w5(AppInstalledDetailsActivity.this, view);
            }
        });
        e5().f206p0.setVisibility(8);
        e5().P.setVisibility(0);
    }

    public static final void w5(AppInstalledDetailsActivity appInstalledDetailsActivity, View view) {
        UptodownApp.a aVar = UptodownApp.F;
        C0953d c0953d = appInstalledDetailsActivity.W;
        kotlin.jvm.internal.m.b(c0953d);
        String o = c0953d.o();
        kotlin.jvm.internal.m.b(o);
        aVar.e0(o);
    }

    public final Object c5(String str, V2.d dVar) {
        Object g4 = o3.g.g(o3.Y.c(), new c(str, this, null), dVar);
        return g4 == W2.b.c() ? g4 : R2.s.a;
    }

    @Override
    protected void onCreate(android.os.Bundle r15) {
        throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.AppInstalledDetailsActivity.onCreate(android.os.Bundle):void");
    }

    @Override
    protected void onResume() {
        super.onResume();
        if (this.W != null) {
            T1.a i4 = N1.k.g.i();
            String b4 = i4 != null ? i4.b() : null;
            C0953d c0953d = this.W;
            kotlin.jvm.internal.m.b(c0953d);
            if (!m3.m.p(b4, c0953d.o(), true)) {
                o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), (V2.g) null, (o3.L) null, new j(null), 3, (Object) null);
                return;
            }
            e5().u.setIndeterminate(true);
            C1254c c1254c = C1254c.a;
            ProgressBar pbProgressAida = e5().u;
            kotlin.jvm.internal.m.d(pbProgressAida, "pbProgressAida");
            ImageView ivLogoAida = e5().e;
            kotlin.jvm.internal.m.d(ivLogoAida, "ivLogoAida");
            c1254c.e(pbProgressAida, ivLogoAida);
        }
    }

    public final Object x5(int i4, String str, V2.d dVar) {
        C0953d c0953d = this.W;
        kotlin.jvm.internal.m.b(c0953d);
        if (!kotlin.jvm.internal.m.a(str, c0953d.o())) {
            return R2.s.a;
        }
        Object g4 = o3.g.g(o3.Y.b(), new l(i4, str, null), dVar);
        return g4 == W2.b.c() ? g4 : R2.s.a;
    }

    @Override
    protected void y4() {
    }
}