APKPure.apk(点击下载) / f.java


package e.g.a.u.t;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.apkpure.aegon.R;
import com.apkpure.aegon.app.newcard.model.AppCardData;
import com.apkpure.aegon.widgets.textview.RoundTextView;
import com.google.android.gms.analytics.ecommerce.Promotion;
import com.rishabhharit.roundedimageview.RoundedImageView;
import com.tencent.trpcprotocol.projecta.common.game_info.nano.GameInfo;
import e.g.a.h0.b.h;
import e.g.a.i0.g1;
import e.g.a.i0.p1;
import e.g.a.i0.x1.d;
import e.g.a.s.l.a;
import e.g.a.u.k;
import java.util.HashMap;
import k.g.c;
import o.s.c.j;

public final class f extends d {

    /* renamed from: e  reason: collision with root package name */
    public final GameInfo f7303e;

    /* renamed from: f  reason: collision with root package name */
    public TextView f7304f;

    /* renamed from: g  reason: collision with root package name */
    public TextView f7305g;

    /* renamed from: h  reason: collision with root package name */
    public RoundTextView f7306h;

    /* renamed from: i  reason: collision with root package name */
    public RoundTextView f7307i;

    /* renamed from: j  reason: collision with root package name */
    public LinearLayout f7308j;

    /* renamed from: k  reason: collision with root package name */
    public LinearLayout f7309k;

    /* renamed from: l  reason: collision with root package name */
    public ImageView f7310l;

    /* renamed from: m  reason: collision with root package name */
    public RoundedImageView f7311m;

    /* renamed from: n  reason: collision with root package name */
    public TextView f7312n;

    public f(GameInfo gameInfo) {
        j.e(gameInfo, "gameInfo");
        this.f7303e = gameInfo;
    }

    @Override // e.g.a.i0.x1.d
    public int X0() {
        return R.layout.arg_RES_2131493136;
    }

    @Override // e.g.a.i0.x1.d
    public void o0(View view) {
        Context context;
        j.e(view, Promotion.ACTION_VIEW);
        View findViewById = view.findViewById(R.id.arg_RES_2131297069);
        j.d(findViewById, "view.findViewById(R.id.dialog_root_ll)");
        LinearLayout linearLayout = (LinearLayout) findViewById;
        View findViewById2 = view.findViewById(R.id.arg_RES_2131296965);
        j.d(findViewById2, "view.findViewById(R.id.content_ll)");
        this.f7308j = (LinearLayout) findViewById2;
        View findViewById3 = view.findViewById(R.id.arg_RES_2131298659);
        j.d(findViewById3, "view.findViewById(R.id.title_tv)");
        this.f7304f = (TextView) findViewById3;
        View findViewById4 = view.findViewById(R.id.arg_RES_2131297021);
        j.d(findViewById4, "view.findViewById(R.id.desc_tv)");
        this.f7305g = (TextView) findViewById4;
        View findViewById5 = view.findViewById(R.id.arg_RES_2131296842);
        j.d(findViewById5, "view.findViewById(R.id.close_rtv)");
        this.f7306h = (RoundTextView) findViewById5;
        View findViewById6 = view.findViewById(R.id.arg_RES_2131297927);
        j.d(findViewById6, "view.findViewById(R.id.ok_rty)");
        this.f7307i = (RoundTextView) findViewById6;
        View findViewById7 = view.findViewById(R.id.arg_RES_2131296732);
        j.d(findViewById7, "view.findViewById(R.id.card_ll)");
        this.f7309k = (LinearLayout) findViewById7;
        View findViewById8 = view.findViewById(R.id.arg_RES_2131296663);
        j.d(findViewById8, "view.findViewById(R.id.bg_iv)");
        this.f7310l = (ImageView) findViewById8;
        View findViewById9 = view.findViewById(R.id.arg_RES_2131298452);
        j.d(findViewById9, "view.findViewById(R.id.short_icon_riv)");
        this.f7311m = (RoundedImageView) findViewById9;
        View findViewById10 = view.findViewById(R.id.arg_RES_2131296424);
        j.d(findViewById10, "view.findViewById(R.id.apk2_name_tv)");
        this.f7312n = (TextView) findViewById10;
        boolean e0 = a.e0(this.b);
        TextView textView = this.f7304f;
        if (textView != null) {
            int i2 = R.color.arg_RES_2131099751;
            Context context2 = this.b;
            c.l0(textView, e0 ? i.i.d.a.b(context2, R.color.arg_RES_2131099751) : p1.i(context2, R.attr.arg_RES_2130969943));
            ImageView imageView = this.f7310l;
            if (imageView != null) {
                e.f.a.e.c.Y(imageView.getContext(), e0 ? "https://image.winudf.com/v2/user/admin/YWRtaW5fbWluaV9nYW1lX2RldGFpbF9zaG9ydF9kaWFsb2dfYmdfbGlnaHQucG5nXzE2NjAxMTU5MDU4MzY/image.png?fakeurl=1" : "https://image.winudf.com/v2/user/admin/YWRtaW5fbWluaV9nYW1lX2RldGFpbF9zaG9ydF9kaWFsb2dfYmcucG5nXzE2NjAxMTU5MDU4MzQ/image.png?fakeurl=1", imageView, e.f.a.e.c.K());
                TextView textView2 = this.f7312n;
                if (textView2 != null) {
                    textView2.setText(this.f7303e.name);
                    RoundedImageView roundedImageView = this.f7311m;
                    if (roundedImageView != null) {
                        e.f.a.e.c.Y(roundedImageView.getContext(), this.f7303e.iconUrl, roundedImageView, e.f.a.e.c.K());
                        TextView textView3 = this.f7305g;
                        if (textView3 != null) {
                            if (e0) {
                                context = this.b;
                            } else {
                                context = this.b;
                                i2 = R.color.arg_RES_2131099747;
                            }
                            c.l0(textView3, i.i.d.a.b(context, i2));
                            int i3 = p1.i(this.b, R.attr.arg_RES_2130968870);
                            RoundTextView roundTextView = this.f7306h;
                            if (roundTextView != null) {
                                c.l0(roundTextView, i3);
                                e.g.a.m0.k0.f delegate = roundTextView.getDelegate();
                                delegate.f6864m = i3;
                                delegate.b();
                                e.g.a.m0.k0.f delegate2 = roundTextView.getDelegate();
                                delegate2.f6857f = g1.f(0.2f, i3);
                                delegate2.b();
                                RoundTextView roundTextView2 = this.f7307i;
                                if (roundTextView2 != null) {
                                    c.l0(roundTextView2, -1);
                                    e.g.a.m0.k0.f delegate3 = roundTextView2.getDelegate();
                                    delegate3.f6856e = i3;
                                    delegate3.b();
                                    e.g.a.m0.k0.f delegate4 = roundTextView2.getDelegate();
                                    delegate4.f6857f = g1.f(0.7f, i3);
                                    delegate4.b();
                                    RoundTextView roundTextView3 = this.f7306h;
                                    if (roundTextView3 != null) {
                                        roundTextView3.setOnClickListener(new c(this));
                                        RoundTextView roundTextView4 = this.f7307i;
                                        if (roundTextView4 != null) {
                                            roundTextView4.setOnClickListener(new d(this));
                                            k.c = System.currentTimeMillis();
                                            LinearLayout linearLayout2 = this.f7308j;
                                            if (linearLayout2 != null) {
                                                j.e(linearLayout2, Promotion.ACTION_VIEW);
                                                HashMap<String, Object> c = k.c();
                                                h.s(linearLayout2, AppCardData.KEY_SCENE, c, true);
                                                h.o("imp", linearLayout2, c);
                                                LinearLayout linearLayout3 = this.f7309k;
                                                if (linearLayout3 != null) {
                                                    j.e(linearLayout3, Promotion.ACTION_VIEW);
                                                    HashMap<String, Object> c2 = k.c();
                                                    c2.put("model_type", 153L);
                                                    c2.put("module_name", "mini_game_shortcut");
                                                    h.s(linearLayout3, "card", c2, false);
                                                    h.o("imp", linearLayout3, c2);
                                                    RoundTextView roundTextView5 = this.f7307i;
                                                    if (roundTextView5 != null) {
                                                        j.e(roundTextView5, Promotion.ACTION_VIEW);
                                                        HashMap<String, Object> c3 = k.c();
                                                        h.s(roundTextView5, "add_button", c3, false);
                                                        h.o("imp", roundTextView5, c3);
                                                        RoundTextView roundTextView6 = this.f7306h;
                                                        if (roundTextView6 != null) {
                                                            j.e(roundTextView6, Promotion.ACTION_VIEW);
                                                            HashMap<String, Object> c4 = k.c();
                                                            h.s(roundTextView6, "close_button", c4, false);
                                                            h.o("imp", roundTextView6, c4);
                                                            return;
                                                        }
                                                        j.n("closeRtv");
                                                        throw null;
                                                    }
                                                    j.n("okRty");
                                                    throw null;
                                                }
                                                j.n("cardLl");
                                                throw null;
                                            }
                                            j.n("contentLl");
                                            throw null;
                                        }
                                        j.n("okRty");
                                        throw null;
                                    }
                                    j.n("closeRtv");
                                    throw null;
                                }
                                j.n("okRty");
                                throw null;
                            }
                            j.n("closeRtv");
                            throw null;
                        }
                        j.n("descTv");
                        throw null;
                    }
                    j.n("shortIconRiv");
                    throw null;
                }
                j.n("apk2NameTv");
                throw null;
            }
            j.n("bgIv");
            throw null;
        }
        j.n("titleTv");
        throw null;
    }
}