导航菜单

页面标题

页面副标题

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

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

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


package com.uptodown.activities;

import N1.k;
import android.R;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.LifecycleCoroutineScope;
import androidx.lifecycle.LifecycleOwnerKt;
import c2.C0582g0;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.mbridge.msdk.playercommon.exoplayer2.upstream.DataSchemeDataSource;
import com.uptodown.activities.MoreInfo;
import d2.K1;
import g2.C0942C;
import g2.C0949J;
import g2.C0955f;
import g2.C0957h;
import g2.C0965p;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.Locale;
import o3.E0;
import org.json.JSONArray;
import org.json.JSONObject;

public final class MoreInfo extends AbstractC0740a {
    private K1 L;
    private C0955f M;
    private ArrayList N;
    private ArrayList O;
    private ArrayList P;
    private final LifecycleCoroutineScope J = LifecycleOwnerKt.getLifecycleScope(this);
    private final R2.g K = R2.h.a(new d3.a() {
        @Override
        public final Object invoke() {
            c2.Q z3;
            z3 = MoreInfo.z3(MoreInfo.this);
            return z3;
        }
    });
    private final int Q = 2;

    public final class a implements Runnable {
        private final C0965p a;

        public a(C0965p c0965p) {
            this.a = c0965p;
        }

        @Override
        public void run() {
            if (MoreInfo.this.L != null) {
                K1 k12 = MoreInfo.this.L;
                kotlin.jvm.internal.m.b(k12);
                C0965p c0965p = this.a;
                k12.Z(c0965p != null ? c0965p.w() : null);
            }
        }
    }

    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 MoreInfo b;

            a(MoreInfo moreInfo, V2.d dVar) {
                super(2, dVar);
                this.b = moreInfo;
            }

            @Override
            public final V2.d create(Object obj, V2.d dVar) {
                return new a(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);
                ArrayList arrayList = this.b.N;
                if (arrayList != null && !arrayList.isEmpty()) {
                    this.b.D3().z.setVisibility(0);
                    TextView textView = this.b.D3().R;
                    k.a aVar = N1.k.g;
                    textView.setTypeface(aVar.w());
                    this.b.D3().S.setTypeface(aVar.x());
                    ArrayList arrayList2 = this.b.N;
                    kotlin.jvm.internal.m.b(arrayList2);
                    Iterator it = arrayList2.iterator();
                    kotlin.jvm.internal.m.d(it, "iterator(...)");
                    String str = null;
                    while (it.hasNext()) {
                        Object next = it.next();
                        kotlin.jvm.internal.m.d(next, "next(...)");
                        String str2 = (String) next;
                        if (str == null) {
                            str = str2;
                        } else {
                            str = str + ", " + str2;
                        }
                    }
                    this.b.D3().S.setText(str);
                }
                return R2.s.a;
            }

            @Override
            public final Object invoke(o3.J j, V2.d dVar) {
                return ((a) 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 MoreInfo.this.new b(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            JSONArray optJSONArray;
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                Context applicationContext = MoreInfo.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext, "getApplicationContext(...)");
                u2.O o = new u2.O(applicationContext);
                C0955f c0955f = MoreInfo.this.M;
                kotlin.jvm.internal.m.b(c0955f);
                C0949J k = o.k(c0955f.e());
                if (!k.b() && k.e() != null) {
                    JSONObject e = k.e();
                    kotlin.jvm.internal.m.b(e);
                    if (e.optInt("success") == 1 && (optJSONArray = e.optJSONArray(DataSchemeDataSource.SCHEME_DATA)) != null) {
                        MoreInfo.this.N = new ArrayList();
                        int length = optJSONArray.length();
                        for (int i4 = 0; i4 < length; i4++) {
                            ArrayList arrayList = MoreInfo.this.N;
                            kotlin.jvm.internal.m.b(arrayList);
                            arrayList.add(optJSONArray.get(i4).toString());
                        }
                    }
                    E0 c4 = o3.Y.c();
                    a aVar = new a(MoreInfo.this, null);
                    this.a = 1;
                    if (o3.g.g(c4, aVar, 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 ((b) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

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

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

        @Override
        public final Object invokeSuspend(Object obj) {
            this.c = obj;
            this.e |= Integer.MIN_VALUE;
            return MoreInfo.this.E3(this);
        }
    }

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

        d(kotlin.jvm.internal.C c, V2.d dVar) {
            super(2, dVar);
            this.c = c;
        }

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

        @Override
        public final Object invokeSuspend(Object obj) {
            String d;
            JSONArray optJSONArray;
            W2.b.c();
            if (this.a != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            R2.n.b(obj);
            Context applicationContext = MoreInfo.this.getApplicationContext();
            kotlin.jvm.internal.m.d(applicationContext, "getApplicationContext(...)");
            u2.O o = new u2.O(applicationContext);
            C0955f c0955f = MoreInfo.this.M;
            kotlin.jvm.internal.m.b(c0955f);
            C0949J n = o.n(c0955f.e());
            if (!n.b() && (d = n.d()) != null && d.length() != 0) {
                String d4 = n.d();
                kotlin.jvm.internal.m.b(d4);
                JSONObject jSONObject = new JSONObject(d4);
                if (jSONObject.optInt("success") == 1 && (optJSONArray = jSONObject.optJSONArray(DataSchemeDataSource.SCHEME_DATA)) != null) {
                    this.c.a = new ArrayList();
                    int length = optJSONArray.length();
                    for (int i = 0; i < length; i++) {
                        Object obj2 = this.c.a;
                        kotlin.jvm.internal.m.b(obj2);
                        ((ArrayList) obj2).add(optJSONArray.getString(i));
                    }
                }
            }
            return R2.s.a;
        }

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

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

        e(kotlin.jvm.internal.C c, MoreInfo moreInfo, V2.d dVar) {
            super(2, dVar);
            this.b = c;
            this.c = moreInfo;
        }

        public static final void k(final MoreInfo moreInfo, View view) {
            if (moreInfo.D3().u.getVisibility() == 0) {
                moreInfo.D3().u.setVisibility(8);
                moreInfo.D3().j.setImageResource(2131231387);
            } else {
                moreInfo.D3().u.setVisibility(0);
                moreInfo.D3().j.setImageResource(2131231503);
                moreInfo.D3().P.post(new Runnable() {
                    @Override
                    public final void run() {
                        MoreInfo.e.l(MoreInfo.this);
                    }
                });
            }
        }

        public static final void l(MoreInfo moreInfo) {
            moreInfo.D3().P.smoothScrollTo(0, moreInfo.D3().G.getTop());
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return new e(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);
            Collection collection = (Collection) this.b.a;
            if (collection == null || collection.isEmpty()) {
                this.c.D3().G.setVisibility(8);
            } else {
                this.c.D3().G.setVisibility(0);
                TextView textView = this.c.D3().h0;
                k.a aVar = N1.k.g;
                textView.setTypeface(aVar.w());
                this.c.D3().i0.setTypeface(aVar.x());
                TextView textView2 = this.c.D3().i0;
                Object obj2 = this.b.a;
                kotlin.jvm.internal.m.b(obj2);
                textView2.setText(String.valueOf(((ArrayList) obj2).size()));
                RelativeLayout relativeLayout = this.c.D3().G;
                final MoreInfo moreInfo = this.c;
                relativeLayout.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public final void onClick(View view) {
                        MoreInfo.e.k(MoreInfo.this, view);
                    }
                });
                MoreInfo moreInfo2 = this.c;
                moreInfo2.L3((ArrayList) this.b.a, moreInfo2.D3().u);
            }
            return R2.s.a;
        }

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

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

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

        @Override
        public final Object invokeSuspend(Object obj) {
            this.c = obj;
            this.e |= Integer.MIN_VALUE;
            return MoreInfo.this.F3(this);
        }
    }

    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 MoreInfo.this.new g(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);
            MoreInfo.this.D3().y.setVisibility(0);
            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 kotlin.jvm.internal.A c;

        h(kotlin.jvm.internal.A a, V2.d dVar) {
            super(2, dVar);
            this.c = a;
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return MoreInfo.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);
            try {
                Context applicationContext = MoreInfo.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext, "getApplicationContext(...)");
                u2.O o = new u2.O(applicationContext);
                C0955f c0955f = MoreInfo.this.M;
                kotlin.jvm.internal.m.b(c0955f);
                C0949J N = o.N(c0955f.e());
                if (!N.b() && N.e() != null) {
                    JSONObject e = N.e();
                    kotlin.jvm.internal.m.b(e);
                    if (!e.isNull("success")) {
                        this.c.a = e.optInt("success");
                    }
                    JSONObject optJSONObject = e.optJSONObject(DataSchemeDataSource.SCHEME_DATA);
                    if (this.c.a == 1 && optJSONObject != null) {
                        MoreInfo.this.O = new ArrayList();
                        JSONArray optJSONArray = optJSONObject.optJSONArray("permissions_concern");
                        if (optJSONArray != null) {
                            int length = optJSONArray.length();
                            for (int i = 0; i < length; i++) {
                                C0942C c0942c = new C0942C();
                                JSONObject optJSONObject2 = optJSONArray.optJSONObject(i);
                                kotlin.jvm.internal.m.d(optJSONObject2, "optJSONObject(...)");
                                c0942c.a(optJSONObject2);
                                ArrayList arrayList = MoreInfo.this.O;
                                kotlin.jvm.internal.m.b(arrayList);
                                arrayList.add(c0942c);
                            }
                        }
                        MoreInfo.this.P = new ArrayList();
                        JSONArray optJSONArray2 = optJSONObject.optJSONArray("permissions");
                        if (optJSONArray2 != null) {
                            int length2 = optJSONArray2.length();
                            for (int i4 = 0; i4 < length2; i4++) {
                                C0942C c0942c2 = new C0942C();
                                JSONObject optJSONObject3 = optJSONArray2.optJSONObject(i4);
                                kotlin.jvm.internal.m.d(optJSONObject3, "optJSONObject(...)");
                                c0942c2.a(optJSONObject3);
                                ArrayList arrayList2 = MoreInfo.this.P;
                                kotlin.jvm.internal.m.b(arrayList2);
                                arrayList2.add(c0942c2);
                            }
                        }
                    }
                }
            } catch (Exception e4) {
                e4.printStackTrace();
            }
            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;
        final kotlin.jvm.internal.A b;
        final MoreInfo c;

        i(kotlin.jvm.internal.A a, MoreInfo moreInfo, V2.d dVar) {
            super(2, dVar);
            this.b = a;
            this.c = moreInfo;
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return new i(this.b, this.c, 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 (this.b.a == 1) {
                this.c.D3().K.setVisibility(0);
                ArrayList arrayList = this.c.O;
                if (arrayList == null || arrayList.isEmpty()) {
                    this.c.D3().K.setVisibility(8);
                    i = 0;
                } else {
                    MoreInfo moreInfo = this.c;
                    moreInfo.R3(moreInfo.O, this.c.D3().t);
                    ArrayList arrayList2 = this.c.O;
                    kotlin.jvm.internal.m.b(arrayList2);
                    i = arrayList2.size();
                }
                ArrayList arrayList3 = this.c.P;
                if (arrayList3 != null && !arrayList3.isEmpty()) {
                    MoreInfo moreInfo2 = this.c;
                    moreInfo2.R3(moreInfo2.P, this.c.D3().w);
                    ArrayList arrayList4 = this.c.P;
                    kotlin.jvm.internal.m.b(arrayList4);
                    i += arrayList4.size();
                }
                C0955f c0955f = this.c.M;
                if (c0955f != null && c0955f.T() == 0) {
                    this.c.D3().f172s0.setText(String.valueOf(i));
                }
            } else {
                this.c.D3().K.setVisibility(8);
            }
            this.c.D3().y.setVisibility(8);
            this.c.D3().P.setVisibility(0);
            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 MoreInfo.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);
                MoreInfo moreInfo = MoreInfo.this;
                this.a = 1;
                if (moreInfo.F3(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);
        }
    }

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

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

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

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

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

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

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

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                MoreInfo moreInfo = MoreInfo.this;
                this.a = 1;
                if (moreInfo.E3(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);
        }
    }

    private final void A3(TextView textView, View view) {
        view.setVisibility(8);
        int maxLines = textView.getMaxLines();
        int i4 = this.Q;
        if (maxLines == i4) {
            textView.setMaxLines(Integer.MAX_VALUE);
        } else {
            textView.setMaxLines(i4);
        }
        view.setVisibility(0);
    }

    private final String B3(String str) {
        String str2 = TtmlNode.ANONYMOUS_REGION_ID;
        while (str.length() > 3) {
            kotlin.jvm.internal.F f4 = kotlin.jvm.internal.F.a;
            String substring = str.substring(str.length() - 3);
            kotlin.jvm.internal.m.d(substring, "substring(...)");
            str2 = String.format(",%s%s", Arrays.copyOf(new Object[]{substring, str2}, 2));
            kotlin.jvm.internal.m.d(str2, "format(...)");
            str = str.substring(0, str.length() - 3);
            kotlin.jvm.internal.m.d(str, "substring(...)");
        }
        if (str.length() <= 0) {
            return str2;
        }
        return str + str2;
    }

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

    public final c2.Q D3() {
        return (c2.Q) this.K.getValue();
    }

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

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

    private final void G3(final TextView textView, final View view) {
        textView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
            @Override
            public final void onGlobalLayout() {
                MoreInfo.H3(textView, this, view);
            }
        });
    }

    public static final void H3(final TextView textView, final MoreInfo moreInfo, final View view) {
        if (w2.s.a(textView)) {
            textView.setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view2) {
                    MoreInfo.I3(MoreInfo.this, textView, view, view2);
                }
            });
        }
    }

    public static final void I3(MoreInfo moreInfo, TextView textView, View view, View view2) {
        moreInfo.A3(textView, view);
    }

    public static final void J3(MoreInfo moreInfo, View view) {
        moreInfo.getOnBackPressedDispatcher().onBackPressed();
    }

    public static final void K3(View view) {
    }

    public final void L3(ArrayList arrayList, LinearLayout linearLayout) {
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        layoutParams.setMargins(0, 0, 0, 0);
        kotlin.jvm.internal.m.b(arrayList);
        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.getRoot().setLayoutParams(layoutParams);
            c4.b.setTypeface(N1.k.g.x());
            TextView textView = c4.b;
            Object obj = arrayList.get(i4);
            kotlin.jvm.internal.m.d(obj, "get(...)");
            String upperCase = ((String) obj).toUpperCase(Locale.ROOT);
            kotlin.jvm.internal.m.d(upperCase, "toUpperCase(...)");
            textView.setText(upperCase);
            kotlin.jvm.internal.m.b(linearLayout);
            linearLayout.addView(c4.getRoot());
        }
    }

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

    public static final void N3(MoreInfo moreInfo, View view) {
        C0955f c0955f = moreInfo.M;
        kotlin.jvm.internal.m.b(c0955f);
        C0957h h4 = c0955f.h();
        kotlin.jvm.internal.m.b(h4);
        moreInfo.T3(h4);
    }

    public static final void O3(MoreInfo moreInfo, View view) {
        if (moreInfo.isFinishing()) {
            return;
        }
        u2.p pVar = new u2.p();
        C0955f c0955f = moreInfo.M;
        kotlin.jvm.internal.m.b(c0955f);
        String C02 = c0955f.C0();
        kotlin.jvm.internal.m.b(C02);
        u2.p.q(pVar, moreInfo, C02, null, 4, null);
    }

    public static final void P3(final MoreInfo moreInfo, View view) {
        if (moreInfo.D3().x.getVisibility() == 0) {
            moreInfo.D3().x.setVisibility(8);
            moreInfo.D3().o.setImageResource(2131231387);
        } else {
            moreInfo.D3().x.setVisibility(0);
            moreInfo.D3().o.setImageResource(2131231503);
            moreInfo.D3().P.post(new Runnable() {
                @Override
                public final void run() {
                    MoreInfo.Q3(MoreInfo.this);
                }
            });
        }
    }

    public static final void Q3(MoreInfo moreInfo) {
        moreInfo.D3().P.smoothScrollTo(0, moreInfo.D3().K.getTop());
    }

    public final void R3(ArrayList arrayList, LinearLayout linearLayout) {
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        layoutParams.setMargins(0, 0, 0, 0);
        kotlin.jvm.internal.m.b(arrayList);
        int size = arrayList.size();
        for (int i4 = 0; i4 < size; i4++) {
            String b4 = ((C0942C) arrayList.get(i4)).b();
            if (b4 != null && b4.length() != 0) {
                final C0582g0 c4 = C0582g0.c(LayoutInflater.from(getApplicationContext()));
                kotlin.jvm.internal.m.d(c4, "inflate(...)");
                c4.getRoot().setLayoutParams(layoutParams);
                c4.b.setTypeface(N1.k.g.x());
                c4.b.setText(((C0942C) arrayList.get(i4)).b());
                c4.b.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public final void onClick(View view) {
                        MoreInfo.S3(C0582g0.this, view);
                    }
                });
                kotlin.jvm.internal.m.b(linearLayout);
                linearLayout.addView(c4.getRoot());
            }
        }
    }

    public static final void S3(C0582g0 c0582g0, View view) {
        if (c0582g0.b.getMaxLines() == 1) {
            c0582g0.b.setMaxLines(Integer.MAX_VALUE);
        } else {
            c0582g0.b.setMaxLines(1);
        }
    }

    private final void T3(C0957h c0957h) {
        K1 a4 = K1.i.a(c0957h);
        getSupportFragmentManager().beginTransaction().setCustomAnimations(2130772032, 2130772029).add(R.id.content, a4, (String) null).addToBackStack(String.valueOf(c0957h.b())).commit();
        this.L = a4;
    }

    public static final c2.Q z3(MoreInfo moreInfo) {
        return c2.Q.c(moreInfo.getLayoutInflater());
    }

    @Override
    protected void onCreate(Bundle bundle) {
        Bundle extras;
        Parcelable parcelable;
        Object parcelable2;
        super.onCreate(bundle);
        try {
            setContentView(D3().getRoot());
            Intent intent = getIntent();
            if (intent != null && (extras = intent.getExtras()) != null && extras.containsKey("appInfo")) {
                if (Build.VERSION.SDK_INT >= 33) {
                    parcelable2 = extras.getParcelable("appInfo", C0955f.class);
                    parcelable = (Parcelable) parcelable2;
                } else {
                    parcelable = extras.getParcelable("appInfo");
                }
                this.M = (C0955f) parcelable;
            }
            Drawable drawable = ContextCompat.getDrawable(this, N1.e.c);
            if (drawable != null) {
                D3().Q.setNavigationIcon(drawable);
                D3().Q.setNavigationContentDescription(getString(2131951721));
            }
            D3().Q.setNavigationOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    MoreInfo.J3(MoreInfo.this, view);
                }
            });
            c2.Q D3 = D3();
            TextView textView = D3.f165l0;
            k.a aVar = N1.k.g;
            textView.setTypeface(aVar.x());
            D3.V.setTypeface(aVar.w());
            D3.a0.setTypeface(aVar.x());
            D3.f166m0.setTypeface(aVar.x());
            D3.y.setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    MoreInfo.K3(view);
                }
            });
            if (this.M != null) {
                M3();
                C0955f c0955f = this.M;
                kotlin.jvm.internal.m.b(c0955f);
                if (c0955f.M0()) {
                    D3().z.setVisibility(8);
                    D3().K.setVisibility(8);
                    D3().G.setVisibility(8);
                } else {
                    o3.g.d(this.J, (V2.g) null, (o3.L) null, new j(null), 3, (Object) null);
                    o3.g.d(this.J, (V2.g) null, (o3.L) null, new k(null), 3, (Object) null);
                    o3.g.d(this.J, (V2.g) null, (o3.L) null, new l(null), 3, (Object) null);
                }
            }
        } catch (Exception e4) {
            e4.printStackTrace();
        }
    }
}