导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - CardOwnFragment.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 CardOwnFragment.java JAVA 源代码文件

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


package com.showself.fragment;

import android.app.Dialog;
import android.content.BroadcastReceiver;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.graphics.drawable.AnimationDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.GridLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import chat.entity.NotificationNumber;
import com.airbnb.lottie.LottieAnimationView;
import com.mifeng.ui.R;
import com.r.m.b.e;
import com.showself.domain.FansConsumInfo;
import com.showself.domain.GetFansConsumParser;
import com.showself.domain.GetPrivilegeParser;
import com.showself.domain.LoginResultInfo;
import com.showself.domain.SystemInfo;
import com.showself.domain.UserPageInfo;
import com.showself.domain.WealthInfo;
import com.showself.my.activity.PrettySignActivity;
import com.showself.resource.ResourceManager;
import com.showself.ui.ContributionActivity;
import com.showself.ui.ConvertMoneyActivity;
import com.showself.ui.FragmentContainerActivity;
import com.showself.ui.HtmlDisplayActivity;
import com.showself.ui.HtmlX5DisplayActivity;
import com.showself.ui.JoinTeamGroupActivity;
import com.showself.ui.ManageMoreActivity;
import com.showself.ui.MedalMoreActivitys;
import com.showself.ui.MotoringMoreActivity;
import com.showself.ui.MyClothActivity;
import com.showself.ui.ProfileActivity;
import com.showself.ui.ShowSelfApp;
import com.showself.ui.TeamPersonActivity;
import com.showself.ui.VipMoreActivity;
import com.showself.ui.WardMoreActivity;
import com.showself.ui.activity.MyFansActivity;
import com.showself.ui.activity.MyFollowActivity;
import com.showself.ui.activity.MyPhotoActivity;
import com.showself.ui.activity.UserLevelActivity;
import com.showself.ui.show.GiftPackActivity;
import com.showself.utils.Utils;
import com.showself.utils.e0;
import com.showself.utils.k0;
import com.showself.utils.o;
import com.showself.utils.r0;
import com.showself.utils.t;
import com.showself.utils.u0;
import com.showself.utils.v;
import com.showself.view.ImmersiveStatusBar;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;
import com.vivo.push.PushClientConstants;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import org.apache.log4j.spi.Configurator;
import org.apache.log4j.spi.LocationInfo;
import org.cocos2dx.lib.GameControllerDelegate;

public class CardOwnFragment extends BaseFragment implements View.OnClickListener {
    private TextView A;
    private boolean A0;
    private TextView B;
    private String B0;
    private RelativeLayout C;
    private boolean C0;
    private AnimationDrawable D0;
    private WealthInfo E0;
    private WealthInfo F0;
    private RelativeLayout G;
    private RelativeLayout H;
    private int H0;
    private RelativeLayout I;
    private File I0;
    private RelativeLayout J;
    private LinearLayout K;
    private LinearLayout L;
    private File L0;
    private LinearLayout M;
    private LinearLayout N;
    private LinearLayout O;
    private LinearLayout P;
    private LinearLayout Q;
    private LinearLayout R;
    private LinearLayout S;
    private LinearLayout T;
    private LinearLayout U;
    private LinearLayout V;
    private LinearLayout W;
    private LinearLayout X;
    private LinearLayout Y;
    private LinearLayout Z;
    private LinearLayout a0;
    private LinearLayout b0;
    private ImmersiveStatusBar c;
    private LinearLayout c0;
    private ImageView d;
    private LinearLayout d0;

    private ImageView f2173e;
    private LinearLayout e0;

    private ImageView f2174f;
    private LinearLayout f0;

    private ImageView f2175g;
    private GridLayout g0;

    private ImageView f2176h;
    private LottieAnimationView h0;

    private ImageView f2177i;
    private Context i0;

    private ImageView f2178j;
    private com.showself.ui.c j0;

    private ImageView f2179k;
    private UserPageInfo k0;
    private ImageView l;
    private LoginResultInfo l0;
    private ImageView m;
    private AssetManager m0;
    private ImageView n;
    private Typeface n0;
    private ImageView o;
    private Dialog o0;
    private ImageView p;
    private com.r.a.a p0;
    private ImageView q;
    private int q0;
    private TextView r;
    private TextView s;
    private TextView t;
    private TextView u;
    private TextView v;
    private int v0;
    private TextView w;
    private String w0;
    private TextView x;
    private String x0;
    private TextView y;
    private i y0;
    private TextView z;
    private boolean z0;
    private boolean r0 = false;
    private int s0 = 0;
    private int t0 = 20;
    private String u0 = "";
    private boolean G0 = false;
    private boolean J0 = false;
    private Handler K0 = new a();

    class a extends Handler {
        a() {
        }

        @Override
        public void handleMessage(Message message) {
            int i2;
            if (CardOwnFragment.this.K0 == null || (i2 = message.what) == 101) {
                return;
            }
            CardOwnFragment.this.Q(Integer.valueOf(i2), message.obj, Integer.valueOf(message.arg1));
        }
    }

    class b implements com.r.c.d {
        b() {
        }

        @Override
        public void onRequestFinish(com.r.c.c cVar, Object obj) {
            CardOwnFragment.this.P(obj);
        }
    }

    class c implements com.r.c.d {
        c() {
        }

        @Override
        public void onRequestFinish(com.r.c.c cVar, Object obj) {
            CardOwnFragment.this.N(obj);
        }
    }

    class d implements View.OnClickListener {
        d() {
        }

        @Override
        public void onClick(View view) {
            o.j(CardOwnFragment.this.getContext(), "showself://largeConsumer/" + CardOwnFragment.this.l0.getShowid());
        }
    }

    class e implements com.r.a.b {
        e() {
        }

        @Override
        public void a() {
            Utils.f1(CardOwnFragment.this.f(), 444);
        }

        @Override
        public void b(String str) {
        }
    }

    class f implements com.r.a.b {
        f() {
        }

        @Override
        public void a() {
            Utils.e1(CardOwnFragment.this.j0, 333);
        }

        @Override
        public void b(String str) {
        }
    }

    class g implements com.r.d.a {
        g() {
        }

        @Override
        public void a(File file) {
            CardOwnFragment.this.L0 = file;
            CardOwnFragment.this.E();
        }
    }

    class h implements com.r.d.a {
        h() {
        }

        @Override
        public void a(File file) {
            CardOwnFragment.this.L0 = file;
            CardOwnFragment.this.E();
        }
    }

    private class i extends BroadcastReceiver {
        private i() {
        }

        @Override
        public void onReceive(Context context, Intent intent) {
            String action = intent.getAction();
            if ("com.showself.updata".equals(action)) {
                CardOwnFragment.this.s0 = 0;
                CardOwnFragment cardOwnFragment = CardOwnFragment.this;
                cardOwnFragment.M(cardOwnFragment.q0);
                CardOwnFragment cardOwnFragment2 = CardOwnFragment.this;
                cardOwnFragment2.H(cardOwnFragment2.q0);
                return;
            }
            if ("com.showself.video_error".equals(action)) {
                intent.getIntExtra("error", -1);
                return;
            }
            if (e0.b.equals(intent.getAction()) || "com.showself.receive_openfiremsg".equals(intent.getAction())) {
                CardOwnFragment.this.a0();
            } else if ("com.showself.receive_mall_update".equals(intent.getAction())) {
                CardOwnFragment.this.b0();
            }
        }

        i(CardOwnFragment cardOwnFragment, a aVar) {
            this();
        }
    }

    private void C() {
        this.J0 = true;
        View inflate = View.inflate(getContext(), R.layout.layout_exclusive_butler, null);
        inflate.setOnClickListener(new d());
        GridLayout.LayoutParams layoutParams = new GridLayout.LayoutParams();
        layoutParams.columnSpec = GridLayout.spec(0, 1, 1.0f);
        layoutParams.topMargin = com.blankj.utilcode.util.f.a(25.0f);
        this.g0.addView(inflate, 0, layoutParams);
    }

    private void D() {
        Utils.Q0(this.j0, getString(R.string.prompt), getString(R.string.auth_photo_alert), null, 0, getString(R.string.know), getResources().getColor(2131099758), null, true);
    }

    public void E() {
        try {
            if (this.L0 != null) {
                HashMap hashMap = new HashMap();
                hashMap.put("imagePath", this.L0.getPath());
                this.I0 = this.L0;
                this.j0.addTask(new com.showself.service.f(GameControllerDelegate.BUTTON_DPAD_RIGHT, hashMap), this.i0, this.K0);
                Utils.U0(this.j0);
            }
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    private void F(String str) {
        ((ClipboardManager) getActivity().getSystemService("clipboard")).setPrimaryClip(ClipData.newPlainText("text", str));
        Utils.D0("已复制ID");
    }

    private void G() {
        this.o0 = new Dialog(this.j0, 2131755755);
        View inflate = LayoutInflater.from(this.i0).inflate(R.layout.change_master_avatar, (ViewGroup) null);
        ImageView imageView = (ImageView) inflate.findViewById(R.id.iv_avatar_back);
        ImageView imageView2 = (ImageView) inflate.findViewById(2131297087);
        Button button = (Button) inflate.findViewById(R.id.btn_avatar_select1);
        Button button2 = (Button) inflate.findViewById(R.id.btn_avatar_select2);
        button.setOnClickListener(this);
        button2.setOnClickListener(this);
        imageView2.setOnClickListener(this);
        UserPageInfo userPageInfo = this.k0;
        if (userPageInfo != null && !TextUtils.isEmpty(userPageInfo.getThumbAvatar())) {
            com.sjvangogh.a.d(this.k0.getThumbAvatar(), imageView);
        }
        this.o0.setContentView(inflate);
        this.o0.getWindow().setLayout(-1, -1);
        this.o0.getWindow().setGravity(80);
        this.o0.getWindow().setWindowAnimations(2131755745);
        this.o0.setCanceledOnTouchOutside(true);
        this.o0.show();
    }

    public void H(int i2) {
        HashMap hashMap = new HashMap();
        hashMap.put(Oauth2AccessToken.KEY_UID, Integer.valueOf(i2));
        this.j0.addTask(new com.showself.service.f(200029, hashMap), this.i0, this.K0);
    }

    private void I() {
        new com.r.c.c(com.r.c.c.k(String.format(com.showself.net.e.v, Integer.valueOf(this.q0)), 1), new com.r.c.a(), new GetFansConsumParser(), this.i0).v(new c());
    }

    private void J(int i2) {
        if (this.z0) {
            return;
        }
        this.z0 = true;
        HashMap hashMap = new HashMap();
        hashMap.put(Oauth2AccessToken.KEY_UID, Integer.valueOf(i2));
        this.j0.addTask(new com.showself.service.f(200031, hashMap), this.i0, this.K0);
    }

    public static CardOwnFragment K(int i2) {
        CardOwnFragment cardOwnFragment = new CardOwnFragment();
        Bundle bundle = new Bundle();
        bundle.putInt("id", i2);
        cardOwnFragment.setArguments(bundle);
        return cardOwnFragment;
    }

    private void L(int i2) {
        this.s0 = 0;
        com.r.c.a aVar = new com.r.c.a();
        aVar.b("fuid", i2);
        new com.r.c.c(com.r.c.c.k(com.showself.net.e.x, 0), aVar, new GetPrivilegeParser(), f()).y(new b());
    }

    public void M(int i2) {
        if (this.r0) {
            return;
        }
        this.r0 = true;
        HashMap hashMap = new HashMap();
        hashMap.put("fuid", Integer.valueOf(i2));
        hashMap.put("type", 1);
        this.j0.addTask(new com.showself.service.f(1004, hashMap), this.i0, this.K0);
    }

    private void O() {
        M(this.q0);
        H(this.q0);
        L(this.q0);
        J(this.q0);
    }

    public void P(java.lang.Object r19) {
        throw new UnsupportedOperationException("Method not decompiled: com.showself.fragment.CardOwnFragment.P(java.lang.Object):void");
    }

    private void S() {
        this.J0 = false;
        this.g0.removeViewAt(0);
    }

    private void T() {
        if (this.p0 == null) {
            this.p0 = new com.r.a.a(this.j0);
        }
        this.p0.d(this, new String[]{"android.permission.CAMERA", "android.permission.WRITE_EXTERNAL_STORAGE"}, new e());
    }

    private void U() {
        if (this.p0 == null) {
            this.p0 = new com.r.a.a(this.j0);
        }
        this.p0.d(this, new String[]{"android.permission.WRITE_EXTERNAL_STORAGE"}, new f());
    }

    private void V() {
        HashMap hashMap = new HashMap();
        hashMap.put("type", "IAP");
        hashMap.put("startindex", Integer.valueOf(this.s0));
        hashMap.put("recordnum", Integer.valueOf(this.t0));
        hashMap.put("subcategory", "android");
        this.j0.addTask(new com.showself.service.f(GameControllerDelegate.BUTTON_Y, hashMap), this.i0, this.K0);
    }

    private void W(String str) {
        if (this.l == null) {
            return;
        }
        if (TextUtils.isEmpty(str) || str.equals(Configurator.NULL)) {
            if (this.A0) {
                this.I.setVisibility(8);
                Y();
                this.D0 = null;
                this.A0 = false;
                return;
            }
            return;
        }
        if (!this.A0) {
            this.I.setVisibility(0);
            this.D0 = (AnimationDrawable) this.m.getDrawable();
            this.A0 = true;
        }
        this.D0 = (AnimationDrawable) this.m.getDrawable();
        this.I.setVisibility(0);
        X();
        com.sjvangogh.a.d(str, this.l);
    }

    private void X() {
        AnimationDrawable animationDrawable = this.D0;
        if (animationDrawable == null || animationDrawable.isRunning()) {
            return;
        }
        this.D0.start();
    }

    private void Z(ArrayList<FansConsumInfo> arrayList, String str) {
        this.x0 = str;
        com.sjvangogh.a.f(this.i0, R.drawable.icon_contribute_first_default_avatar, this.f2177i);
        com.sjvangogh.a.f(this.i0, R.drawable.icon_contribute_second_default_avatar, this.f2178j);
        com.sjvangogh.a.f(this.i0, R.drawable.icon_contribute_third_default_avatar, this.f2179k);
        if (arrayList != null) {
            if (arrayList.size() > 0 && arrayList.get(0) != null) {
                com.sjvangogh.a.h(this.i0, arrayList.get(0).getAvatar(), this.f2177i);
            }
            if (arrayList.size() > 1 && arrayList.get(1) != null) {
                com.sjvangogh.a.h(this.i0, arrayList.get(1).getAvatar(), this.f2178j);
            }
            if (arrayList.size() <= 2 || arrayList.get(2) == null) {
                return;
            }
            com.sjvangogh.a.h(this.i0, arrayList.get(2).getAvatar(), this.f2179k);
        }
    }

    public void a0() {
        if (NotificationNumber.getShareNotificationNum().getKefuChatNum() > 0) {
            ImageView imageView = this.n;
            if (imageView == null || this.o == null) {
                return;
            }
            imageView.setVisibility(0);
            this.o.setVisibility(0);
            return;
        }
        ImageView imageView2 = this.n;
        if (imageView2 == null || this.o == null) {
            return;
        }
        imageView2.setVisibility(8);
        this.o.setVisibility(8);
    }

    public void b0() {
        if (r0.z(this.q0) == 0) {
            ImageView imageView = this.q;
            if (imageView == null || this.p == null) {
                return;
            }
            imageView.setVisibility(8);
            this.p.setVisibility(8);
            return;
        }
        ImageView imageView2 = this.q;
        if (imageView2 == null || this.p == null) {
            return;
        }
        imageView2.setVisibility(0);
        this.p.setVisibility(0);
    }

    private void c0(String str, String str2) {
        this.A.setText(str);
        this.B.setText(str2);
        String str3 = this.w0;
        if (str3 != null) {
            com.sjvangogh.a.l(this.i0, str3, this.f2176h);
        }
    }

    private void d0(UserPageInfo userPageInfo) {
        this.r.setText(userPageInfo.getUsername());
        com.sjvangogh.a.g(this.i0, userPageInfo.getAvatar(), 2131231470, 2131231470, this.f2173e);
        r0.c1(this.i0, this.q0, userPageInfo.getAvatar(), userPageInfo.getUsername(), userPageInfo.getExp_url());
        if (userPageInfo.getGender() == 1) {
            this.f2174f.setImageResource(2131231847);
        } else {
            this.f2174f.setImageResource(2131231848);
        }
        this.s.setText("ID:" + userPageInfo.getReferee_showid());
        this.u.setText(t.b().a(userPageInfo.getIntro()));
        this.x.setText(userPageInfo.getFollowings() + "");
        this.y.setText(userPageInfo.getFollowers() + "");
        this.z.setText(userPageInfo.getSpendmoney() + "");
        if (TextUtils.isEmpty(userPageInfo.getExp_url())) {
            this.f2175g.setVisibility(8);
        } else {
            this.f2175g.setVisibility(0);
            com.sjvangogh.a.l(this.i0, userPageInfo.getExp_url(), this.f2175g);
        }
        if (userPageInfo.getIs_anchor() == 1) {
            this.e0.setVisibility(0);
            this.f0.setVisibility(8);
        } else {
            this.e0.setVisibility(8);
            this.f0.setVisibility(0);
        }
        if (this.G0) {
            this.J.setVisibility(8);
            this.h0.setVisibility(8);
            return;
        }
        if (userPageInfo.getIs_anchor() != 1) {
            this.J.setVisibility(0);
            this.h0.setVisibility(8);
            if (this.h0.o()) {
                this.h0.i();
                return;
            }
            return;
        }
        if (userPageInfo.getOnline() == 1) {
            this.J.setVisibility(8);
            this.h0.setVisibility(0);
            this.h0.q();
        } else {
            this.J.setVisibility(0);
            this.h0.setVisibility(8);
            if (this.h0.o()) {
                this.h0.i();
            }
        }
    }

    protected void N(Object obj) {
        HashMap hashMap = (HashMap) obj;
        if (hashMap == null || ((Integer) hashMap.get(com.showself.net.e.n1)).intValue() != com.showself.net.e.m1) {
            return;
        }
        Z((ArrayList) hashMap.get("fansRanks"), (String) hashMap.get("hiddenRank"));
    }

    public void Q(Object... objArr) {
        File file;
        Utils.n(null);
        this.r0 = false;
        int intValue = ((Integer) objArr[0]).intValue();
        HashMap hashMap = (HashMap) objArr[1];
        if (hashMap != null) {
            int intValue2 = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
            String str = (String) hashMap.get(com.showself.net.e.o1);
            if (intValue == 1004) {
                this.r0 = false;
                if (intValue2 != com.showself.net.e.m1) {
                    Utils.Z0(this.i0, str);
                    return;
                }
                UserPageInfo userPageInfo = (UserPageInfo) hashMap.get("user");
                this.l0.setAvatar(userPageInfo.getAvatar());
                String str2 = (String) hashMap.get("official_qq");
                String str3 = (String) hashMap.get("recruit_qq");
                ShowSelfApp.h().r(str2);
                ShowSelfApp.h().s(str3);
                if (userPageInfo != null) {
                    UserPageInfo userPageInfo2 = this.k0;
                    if (userPageInfo2 != null) {
                        userPageInfo.setGifts_list(userPageInfo2.getGifts_list());
                        userPageInfo.setAffinity_info(this.k0.getAffinity_info());
                        userPageInfo.setBeauty_info(this.k0.getBeauty_info());
                        userPageInfo.setWealth_info(this.k0.getWealth_info());
                    }
                    this.k0 = userPageInfo;
                    V();
                    this.u0 = (String) hashMap.get("v_url");
                    d0(this.k0);
                    I();
                    return;
                }
                return;
            }
            if (intValue == 1005) {
                if (intValue2 != com.showself.net.e.m1) {
                    Utils.Z0(this.i0, str);
                } else if (this.v0 == 1) {
                    D();
                }
                this.v0 = 0;
                return;
            }
            if (intValue == 1008) {
                this.r0 = false;
                if (intValue2 == com.showself.net.e.m1) {
                    this.k0.setMyJewel(((Integer) hashMap.get("diamond")).intValue());
                    return;
                }
                return;
            }
            if (intValue == 1013) {
                if (intValue2 != com.showself.net.e.m1 || (file = this.I0) == null) {
                    Utils.Z0(this.i0, str);
                    return;
                } else {
                    com.sjvangogh.a.g(this.i0, file.getAbsolutePath(), 2131231470, 2131231470, this.f2173e);
                    M(this.q0);
                    return;
                }
            }
            if (intValue == 200029) {
                if (intValue2 == 0) {
                    ((Integer) hashMap.get("isJoin")).intValue();
                    this.H0 = ((Integer) hashMap.get("armyGroupId")).intValue();
                    ((Integer) hashMap.get("role")).intValue();
                    return;
                }
                return;
            }
            if (intValue != 200031) {
                return;
            }
            this.z0 = false;
            if (intValue2 == 0) {
                this.B0 = (String) hashMap.get("clothes");
                if (hashMap.get("hasPrettyNo") != null) {
                    ((Boolean) hashMap.get("hasPrettyNo")).booleanValue();
                }
                this.A0 = true;
                W(this.B0);
                int intValue3 = hashMap.get("largeConsumer") != null ? ((Integer) hashMap.get("largeConsumer")).intValue() : 0;
                if (intValue3 == 1 && !this.J0) {
                    C();
                } else if (intValue3 == 0 && this.J0) {
                    S();
                }
            }
        }
    }

    public void R() {
        if (this.c != null) {
            u0.i(getActivity(), this.c, 2131099661, true);
        }
    }

    public void Y() {
        AnimationDrawable animationDrawable = this.D0;
        if (animationDrawable == null || !animationDrawable.isRunning()) {
            return;
        }
        this.D0.stop();
    }

    @Override
    protected void h() {
        this.j0.getWindowManager().getDefaultDisplay().getWidth();
        AssetManager assets = this.i0.getAssets();
        this.m0 = assets;
        this.n0 = Typeface.createFromAsset(assets, "fonts/OSWALDBOLD.TTF");
        this.c = (ImmersiveStatusBar) e(2131298726);
        this.g0 = (GridLayout) e(R.id.gridLayout);
        this.d = (ImageView) e(R.id.iv_setting);
        this.f2173e = (ImageView) e(R.id.iv_card_own_headerView);
        this.f2174f = (ImageView) e(R.id.iv_card_own_gender);
        this.f2175g = (ImageView) e(R.id.iv_card_own_level);
        this.f2176h = (ImageView) e(R.id.iv_card_own_star_level);
        this.f2177i = (ImageView) e(R.id.iv_contribute_first);
        this.f2178j = (ImageView) e(R.id.iv_contribute_second);
        this.f2179k = (ImageView) e(R.id.iv_contribute_third);
        this.n = (ImageView) e(R.id.iv_anchor_kefu_dot);
        this.o = (ImageView) e(R.id.iv_user_kefu_dot);
        this.p = (ImageView) e(R.id.iv_anchor_mall_dot);
        this.q = (ImageView) e(R.id.iv_user_mall_dot);
        this.r = (TextView) e(R.id.tv_card_own_name);
        this.s = (TextView) e(R.id.tv_card_own_showId);
        this.t = (TextView) e(R.id.tv_card_own_copyId);
        this.u = (TextView) e(R.id.tv_card_own_shuoshuo);
        this.x = (TextView) e(R.id.tv_card_own_follow_num);
        this.y = (TextView) e(R.id.tv_card_own_fans_num);
        this.z = (TextView) e(R.id.tv_card_own_send_diamond_num);
        this.A = (TextView) e(R.id.tv_card_own_diamond_num);
        this.B = (TextView) e(R.id.tv_card_own_gold_num);
        this.v = (TextView) e(R.id.tv_card_own_follow_text);
        this.w = (TextView) e(R.id.tv_card_own_fans_text);
        this.C = (RelativeLayout) e(R.id.rl_diamond);
        this.G = (RelativeLayout) e(R.id.rl_gold);
        this.H = (RelativeLayout) e(R.id.rl_contribute);
        this.J = (RelativeLayout) e(R.id.rl_living);
        this.I = (RelativeLayout) e(R.id.rl_cloth);
        this.l = (ImageView) e(R.id.iv_user_cloth);
        this.m = (ImageView) e(R.id.iv_cloth_light);
        this.K = (LinearLayout) e(R.id.ll_card_own_kefu);
        this.L = (LinearLayout) e(R.id.ll_card_own_maishi);
        this.M = (LinearLayout) e(R.id.ll_card_own_liangzhao);
        this.N = (LinearLayout) e(R.id.ll_card_own_juntuan);
        this.O = (LinearLayout) e(R.id.ll_card_own_level);
        this.P = (LinearLayout) e(R.id.ll_card_own_mall);
        this.Q = (LinearLayout) e(R.id.ll_card_own_medal);
        this.R = (LinearLayout) e(R.id.ll_card_own_guard);
        this.S = (LinearLayout) e(R.id.ll_card_own_member);
        this.T = (LinearLayout) e(R.id.ll_card_own_lianghao);
        this.U = (LinearLayout) e(R.id.ll_card_own_fashion);
        this.V = (LinearLayout) e(R.id.ll_card_own_car);
        this.W = (LinearLayout) e(R.id.ll_card_own_controller);
        this.X = (LinearLayout) e(R.id.ll_card_own_gift);
        this.Y = (LinearLayout) e(R.id.ll_card_own_authentication);
        this.e0 = (LinearLayout) e(R.id.ll_anchor_function);
        this.f0 = (LinearLayout) e(R.id.ll_user_function);
        this.Z = (LinearLayout) e(R.id.ll_user_card_own_level);
        this.a0 = (LinearLayout) e(R.id.ll_user_card_own_juntuan);
        this.b0 = (LinearLayout) e(R.id.ll_user_card_own_mall);
        this.c0 = (LinearLayout) e(R.id.ll_user_card_own_kefu);
        this.d0 = (LinearLayout) e(R.id.ll_user_card_own_liangzhao);
        LottieAnimationView e2 = e(R.id.lottie_living);
        this.h0 = e2;
        e2.setAnimation("lottie/card_own_living.json");
        this.d.setOnClickListener(this);
        this.f2173e.setOnClickListener(this);
        this.r.setOnClickListener(this);
        this.t.setOnClickListener(this);
        this.x.setOnClickListener(this);
        this.v.setOnClickListener(this);
        this.y.setOnClickListener(this);
        this.w.setOnClickListener(this);
        this.C.setOnClickListener(this);
        this.G.setOnClickListener(this);
        this.K.setOnClickListener(this);
        this.L.setOnClickListener(this);
        this.M.setOnClickListener(this);
        this.N.setOnClickListener(this);
        this.O.setOnClickListener(this);
        this.P.setOnClickListener(this);
        this.H.setOnClickListener(this);
        this.Q.setOnClickListener(this);
        this.R.setOnClickListener(this);
        this.S.setOnClickListener(this);
        this.T.setOnClickListener(this);
        this.U.setOnClickListener(this);
        this.V.setOnClickListener(this);
        this.W.setOnClickListener(this);
        this.X.setOnClickListener(this);
        this.Y.setOnClickListener(this);
        this.Z.setOnClickListener(this);
        this.a0.setOnClickListener(this);
        this.b0.setOnClickListener(this);
        this.c0.setOnClickListener(this);
        this.d0.setOnClickListener(this);
        this.J.setOnClickListener(this);
        this.h0.setOnClickListener(this);
        this.A.setTypeface(this.n0);
        this.B.setTypeface(this.n0);
        this.x.setTypeface(this.n0);
        this.y.setTypeface(this.n0);
        this.z.setTypeface(this.n0);
        R();
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("com.showself.updata");
        intentFilter.addAction("com.showself.video_error");
        intentFilter.addAction(e0.b);
        intentFilter.addAction("com.showself.receive_openfiremsg");
        intentFilter.addAction("com.showself.action_finish");
        intentFilter.addAction("com.showself.action_exception");
        intentFilter.addAction("com.showself.action_status");
        intentFilter.addAction("com.showself.receive_mall_update");
        i iVar = new i(this, null);
        this.y0 = iVar;
        this.j0.registerReceiver(iVar, intentFilter);
        if (this.G0) {
            this.d.setImageResource(R.drawable.icon_back_black);
        } else {
            this.d.setImageResource(R.drawable.icon_card_own_setting);
        }
    }

    @Override
    protected View j() {
        return View.inflate(this.i0, R.layout.fragment_card_own, null);
    }

    @Override
    public void k() {
        a0();
        b0();
    }

    public void onActivityResult(int i2, int i3, Intent intent) {
        super.onActivityResult(i2, i3, intent);
        if (i3 != -1) {
            return;
        }
        if (i2 == 111) {
            try {
                this.I0 = v.a(this.i0, Utils.C() + "/myPhoto/croptemp", -1);
                if (this.v0 == 1) {
                    HashMap hashMap = new HashMap();
                    hashMap.put("aid", 0);
                    hashMap.put("type", 1);
                    hashMap.put("imagePath", this.I0.getPath());
                    this.j0.addTask(new com.showself.service.f(GameControllerDelegate.BUTTON_B, hashMap), this.i0, this.K0);
                } else {
                    HashMap hashMap2 = new HashMap();
                    hashMap2.put("imagePath", this.I0.getPath());
                    this.j0.addTask(new com.showself.service.f(GameControllerDelegate.BUTTON_DPAD_RIGHT, hashMap2), this.i0, this.K0);
                    Utils.U0(this.j0);
                }
                return;
            } catch (Exception e2) {
                e2.printStackTrace();
                return;
            }
        }
        if (i2 == 333) {
            Uri data = intent.getData();
            if (data == null) {
                Utils.Y0(this.i0, R.string.network_get_photo_fail);
                return;
            } else {
                Utils.N0(f(), v.h(f(), data), new g());
                return;
            }
        }
        if (i2 == 444) {
            Utils.N0(this.j0, v.a, new h());
            return;
        }
        if (i2 != 512) {
            return;
        }
        this.r.setText(intent.getStringExtra("nickname"));
        this.l0.setAvatar(intent.getStringExtra("avatarurl"));
        r0.b(this.i0, this.l0);
        UserPageInfo userPageInfo = (UserPageInfo) intent.getSerializableExtra("pageInfo");
        if (userPageInfo != null) {
            this.k0 = userPageInfo;
            d0(userPageInfo);
        }
        M(this.q0);
    }

    @Override
    public void onClick(View view) {
        int id = view.getId();
        switch (id) {
            case R.id.btn_avatar_select1:
                T();
                this.o0.dismiss();
                break;
            case R.id.btn_avatar_select2:
                U();
                this.o0.dismiss();
                break;
            default:
                switch (id) {
                    case R.id.iv_card_own_headerView:
                        if (this.k0 != null) {
                            G();
                            break;
                        }
                        break;
                    case 2131297087:
                        this.o0.dismiss();
                        break;
                    case R.id.iv_setting:
                        if (!this.G0) {
                            Intent intent = new Intent();
                            intent.setClass(this.i0, FragmentContainerActivity.class);
                            intent.putExtra(PushClientConstants.TAG_CLASS_NAME, SettingFragment.class.getName());
                            startActivity(intent);
                            break;
                        } else {
                            this.j0.finish();
                            break;
                        }
                    case R.id.lottie_living:
                        UserPageInfo userPageInfo = this.k0;
                        if (userPageInfo != null) {
                            if (!this.C0) {
                                if (userPageInfo.getOnline() != 1) {
                                    com.showself.ui.show.g.l(this.j0, this.k0.getRoomid(), this.k0.getBigAvatar());
                                    break;
                                } else {
                                    Utils.a1("您已开播,不允许重复开播");
                                    break;
                                }
                            } else {
                                Utils.a1("直播期间不能跳转房间哦");
                                break;
                            }
                        }
                        break;
                    case R.id.rl_contribute:
                        Intent intent2 = new Intent();
                        intent2.setClass(this.i0, ContributionActivity.class);
                        Bundle bundle = new Bundle();
                        bundle.putInt("id", this.q0);
                        bundle.putString("hiddenRank", this.x0);
                        bundle.putInt("type", 0);
                        intent2.putExtras(bundle);
                        startActivity(intent2);
                        break;
                    case R.id.rl_diamond:
                        com.r.n.g j2 = com.r.n.g.j();
                        com.r.n.d c2 = com.r.n.d.c();
                        c2.e("Bank");
                        c2.f("UserHome");
                        c2.d("Charge");
                        c2.h(com.r.n.e.Click);
                        j2.u(c2.b());
                        com.showself.utils.c1.e.a(this.j0);
                        break;
                    case R.id.rl_gold:
                        com.r.n.g j3 = com.r.n.g.j();
                        com.r.n.d c3 = com.r.n.d.c();
                        c3.e("Bank");
                        c3.f("UserHome");
                        c3.d("Exchange");
                        c3.h(com.r.n.e.Click);
                        j3.u(c3.b());
                        startActivity(new Intent(this.i0, (Class<?>) ConvertMoneyActivity.class));
                        break;
                    case R.id.rl_living:
                        UserPageInfo userPageInfo2 = this.k0;
                        if (userPageInfo2 != null) {
                            if (userPageInfo2.getIs_anchor() != 1) {
                                if (!ResourceManager.getNewAuthenticationEnable()) {
                                    Intent intent3 = new Intent((Context) this.j0, (Class<?>) HtmlDisplayActivity.class);
                                    intent3.putExtra("title", getResources().getString(R.string.identification_usercard));
                                    String str = r0.o(this.i0) + "/realName";
                                    intent3.putExtra("url", str + (str.contains(LocationInfo.NA) ? "&version=" : "?version=") + Utils.O(this.j0).versionName);
                                    startActivity(intent3);
                                    break;
                                } else {
                                    Intent intent4 = new Intent((Context) this.j0, (Class<?>) HtmlDisplayActivity.class);
                                    intent4.putExtra("title", getResources().getString(R.string.identification_usercard));
                                    intent4.putExtra("noTitleBar", true);
                                    intent4.putExtra("roomid", this.k0.getRoomid());
                                    String newAuthentication = ResourceManager.getNewAuthentication();
                                    intent4.putExtra("url", newAuthentication + (newAuthentication.contains(LocationInfo.NA) ? "&scheme=" : "?scheme=") + "mifeng");
                                    startActivity(intent4);
                                    break;
                                }
                            } else {
                                org.greenrobot.eventbus.c.c().k(new com.r.m.b.e(e.a.KAIBO, this.k0.getRoomid()));
                                break;
                            }
                        }
                        break;
                    case R.id.tv_card_own_copyId:
                        if (this.k0 != null) {
                            F(this.k0.getReferee_showid() + "");
                            break;
                        }
                        break;
                    case R.id.tv_card_own_name:
                        Intent intent5 = new Intent(this.i0, (Class<?>) ProfileActivity.class);
                        Bundle bundle2 = new Bundle();
                        bundle2.putInt("id", this.q0);
                        bundle2.putString("v_url", this.u0);
                        bundle2.putSerializable("pageInfo", this.k0);
                        intent5.putExtras(bundle2);
                        if (this.q0 != this.l0.getUserId()) {
                            startActivity(intent5);
                            break;
                        } else {
                            this.j0.startActivityForResult(intent5, 512);
                            break;
                        }
                    default:
                        switch (id) {
                            case R.id.ll_card_own_authentication:
                                if (!ResourceManager.getNewAuthenticationEnable()) {
                                    Intent intent6 = new Intent((Context) this.j0, (Class<?>) HtmlDisplayActivity.class);
                                    intent6.putExtra("title", getResources().getString(R.string.identification_usercard));
                                    String str2 = r0.o(this.i0) + "/realName";
                                    intent6.putExtra("url", str2 + (str2.contains(LocationInfo.NA) ? "&version=" : "?version=") + Utils.O(this.j0).versionName);
                                    startActivity(intent6);
                                    break;
                                } else {
                                    Intent intent7 = new Intent((Context) this.j0, (Class<?>) HtmlDisplayActivity.class);
                                    intent7.putExtra("title", getResources().getString(R.string.identification_usercard));
                                    intent7.putExtra("noTitleBar", true);
                                    intent7.putExtra("roomid", this.k0.getRoomid());
                                    String newAuthentication2 = ResourceManager.getNewAuthentication();
                                    intent7.putExtra("url", newAuthentication2 + (newAuthentication2.contains(LocationInfo.NA) ? "&scheme=" : "?scheme=") + "mifeng");
                                    startActivity(intent7);
                                    break;
                                }
                            case R.id.ll_card_own_car:
                                if (!ResourceManager.getUserNewVehicle()) {
                                    Intent intent8 = new Intent();
                                    intent8.setClass(this.i0, MotoringMoreActivity.class);
                                    Bundle bundle3 = new Bundle();
                                    bundle3.putInt("id", this.q0);
                                    intent8.putExtras(bundle3);
                                    startActivity(intent8);
                                    break;
                                } else {
                                    com.r.n.g j4 = com.r.n.g.j();
                                    com.r.n.d c4 = com.r.n.d.c();
                                    c4.e("Me");
                                    c4.f("VehiclePage");
                                    c4.d("VehicleList");
                                    c4.h(com.r.n.e.View);
                                    c4.a("type", "Me");
                                    j4.u(c4.b());
                                    Intent intent9 = new Intent();
                                    intent9.setClass(this.i0, HtmlDisplayActivity.class);
                                    intent9.putExtra("type", 2);
                                    intent9.putExtra("noTitleBar", true);
                                    intent9.putExtra("url", ResourceManager.getVehicleUrl() + "/self");
                                    startActivity(intent9);
                                    break;
                                }
                            case R.id.ll_card_own_controller:
                                Intent intent10 = new Intent();
                                intent10.setClass(this.i0, ManageMoreActivity.class);
                                Bundle bundle4 = new Bundle();
                                bundle4.putInt("id", this.q0);
                                intent10.putExtras(bundle4);
                                startActivity(intent10);
                                break;
                            case R.id.ll_card_own_fashion:
                                Intent intent11 = new Intent();
                                if (!"1".equals(ResourceManager.getConstantsString("user.profile.clothes.h5"))) {
                                    intent11.setClass(this.i0, MyClothActivity.class);
                                    intent11.putExtra("id", this.q0);
                                    startActivity(intent11);
                                    break;
                                } else {
                                    String clothUrl = ResourceManager.getClothUrl();
                                    if (!TextUtils.isEmpty(clothUrl)) {
                                        com.r.n.g j5 = com.r.n.g.j();
                                        com.r.n.d c5 = com.r.n.d.c();
                                        c5.e("Me");
                                        c5.f("FashionCloth");
                                        c5.d("ClothList");
                                        c5.h(com.r.n.e.View);
                                        c5.a("type", "Me");
                                        j5.u(c5.b());
                                        intent11.setClass(this.i0, HtmlDisplayActivity.class);
                                        intent11.putExtra("type", 2);
                                        intent11.putExtra("noTitleBar", true);
                                        intent11.putExtra("url", clothUrl + String.format("?uid=%d&isMyself=%d&terminal=2&androidV=%s", Integer.valueOf(this.q0), 1, SystemInfo.getShareSystem().getA_appver()));
                                        startActivity(intent11);
                                        break;
                                    }
                                }
                                break;
                            case R.id.ll_card_own_gift:
                                com.r.n.g j6 = com.r.n.g.j();
                                com.r.n.d c6 = com.r.n.d.c();
                                c6.e("Me");
                                c6.f("GiftPage");
                                c6.d("GiftList");
                                c6.h(com.r.n.e.View);
                                j6.u(c6.b());
                                Intent intent12 = new Intent(this.i0, (Class<?>) GiftPackActivity.class);
                                intent12.putExtra("isFromMygift", true);
                                startActivity(intent12);
                                break;
                            case R.id.ll_card_own_guard:
                                Intent intent13 = new Intent();
                                if (!ResourceManager.getUseNewGuard()) {
                                    intent13.setClass(this.i0, WardMoreActivity.class);
                                    intent13.putExtra("id", this.q0);
                                    startActivity(intent13);
                                    break;
                                } else {
                                    String guardNewUrl = ResourceManager.getGuardNewUrl();
                                    if (!TextUtils.isEmpty(guardNewUrl)) {
                                        com.r.n.g j7 = com.r.n.g.j();
                                        com.r.n.d c7 = com.r.n.d.c();
                                        c7.e("Me");
                                        c7.f("WardPage");
                                        c7.d("PropertyList");
                                        c7.h(com.r.n.e.View);
                                        c7.a("type", "Me");
                                        j7.u(c7.b());
                                        String str3 = guardNewUrl + String.format("?uid=%d&terminal=2&androidV=%s", Integer.valueOf(this.q0), SystemInfo.getShareSystem().getA_appver());
                                        intent13.setClass(this.i0, HtmlDisplayActivity.class);
                                        intent13.putExtra("url", str3);
                                        intent13.putExtra("noTitleBar", true);
                                        intent13.putExtra("type", 2);
                                        startActivity(intent13);
                                        break;
                                    }
                                }
                                break;
                            case R.id.ll_card_own_juntuan:
                                com.r.n.g j8 = com.r.n.g.j();
                                com.r.n.d c8 = com.r.n.d.c();
                                c8.e("Me");
                                c8.f("Army");
                                c8.d("Army");
                                c8.h(com.r.n.e.Click);
                                j8.u(c8.b());
                                if (this.H0 == 0) {
                                    this.j0.startActivity(new Intent((Context) this.j0, (Class<?>) JoinTeamGroupActivity.class));
                                    break;
                                } else {
                                    Intent intent14 = new Intent((Context) this.j0, (Class<?>) TeamPersonActivity.class);
                                    intent14.putExtra("jid", this.H0);
                                    this.j0.startActivity(intent14);
                                    break;
                                }
                            case R.id.ll_card_own_kefu:
                                com.r.n.g j9 = com.r.n.g.j();
                                com.r.n.d c9 = com.r.n.d.c();
                                c9.e("Me");
                                c9.f("CustomerService");
                                c9.d("CustomerService");
                                c9.h(com.r.n.e.Click);
                                j9.u(c9.b());
                                com.showself.provider.l.a.c().f(getActivity(), "");
                                break;
                            case R.id.ll_card_own_level:
                                com.r.n.g j10 = com.r.n.g.j();
                                com.r.n.d c10 = com.r.n.d.c();
                                c10.e("Me");
                                c10.f("UserHome");
                                c10.d("CreditLevel");
                                c10.h(com.r.n.e.Click);
                                j10.u(c10.b());
                                if (this.E0 != null && this.F0 != null) {
                                    Intent intent15 = new Intent((Context) this.j0, (Class<?>) UserLevelActivity.class);
                                    intent15.putExtra("wealthInfo", this.E0);
                                    intent15.putExtra("starInfo", this.F0);
                                    startActivity(intent15);
                                    break;
                                } else {
                                    Utils.a1("未获取到财富等级或明星等级");
                                    break;
                                }
                                break;
                            case R.id.ll_card_own_lianghao:
                                com.r.n.g j11 = com.r.n.g.j();
                                com.r.n.d c11 = com.r.n.d.c();
                                c11.e("Me");
                                c11.f("PrettyNumber");
                                c11.d("PrettyList");
                                c11.h(com.r.n.e.View);
                                j11.u(c11.b());
                                PrettySignActivity.F(this.j0, this.q0);
                                break;
                            case R.id.ll_card_own_liangzhao:
                                if (this.k0 != null) {
                                    Intent intent16 = new Intent((Context) this.j0, (Class<?>) MyPhotoActivity.class);
                                    Bundle bundle5 = new Bundle();
                                    bundle5.putSerializable("pageInfo", this.k0);
                                    intent16.putExtras(bundle5);
                                    startActivity(intent16);
                                    break;
                                }
                                break;
                            case R.id.ll_card_own_maishi:
                                Intent intent17 = new Intent((Context) this.j0, (Class<?>) HtmlDisplayActivity.class);
                                intent17.putExtra("title", getResources().getString(R.string.show_mouth_showtime_num));
                                intent17.putExtra("url", r0.o(this.i0) + "/userInfo/tongji");
                                startActivity(intent17);
                                break;
                            case R.id.ll_card_own_mall:
                                Intent intent18 = new Intent();
                                r0.v0(this.q0, 0);
                                Intent intent19 = new Intent();
                                intent19.setAction("com.showself.receive_mall_update");
                                this.j0.sendBroadcast(intent19, null);
                                com.r.n.g j12 = com.r.n.g.j();
                                com.r.n.d c12 = com.r.n.d.c();
                                c12.e("Me");
                                c12.f("mall");
                                c12.d("mall");
                                c12.h(com.r.n.e.Click);
                                j12.u(c12.b());
                                if (!ResourceManager.getUseNewStore()) {
                                    intent18.setClass(this.i0, FragmentContainerActivity.class);
                                    intent18.putExtra(PushClientConstants.TAG_CLASS_NAME, StoreShowFragment.class.getName());
                                    startActivity(intent18);
                                    break;
                                } else {
                                    String storeUrl = ResourceManager.getStoreUrl();
                                    if (!TextUtils.isEmpty(storeUrl)) {
                                        String str4 = storeUrl + String.format("?uid=%d&activity=%s", Integer.valueOf(r0.y(this.i0).getUserId()), Utils.f0(this.i0));
                                        intent18.setClass(this.i0, HtmlX5DisplayActivity.class);
                                        intent18.putExtra("url", str4);
                                        intent18.putExtra("noTitleBar", true);
                                        intent18.putExtra("type", 2);
                                        startActivity(intent18);
                                        break;
                                    }
                                }
                                break;
                            case R.id.ll_card_own_medal:
                                com.r.n.g j13 = com.r.n.g.j();
                                com.r.n.d c13 = com.r.n.d.c();
                                c13.e("Me");
                                c13.f("UserMedal");
                                c13.d("MedalList");
                                c13.h(com.r.n.e.View);
                                j13.u(c13.b());
                                Intent intent20 = new Intent();
                                intent20.setClass(this.i0, MedalMoreActivitys.class);
                                Bundle bundle6 = new Bundle();
                                bundle6.putInt("id", this.q0);
                                intent20.putExtras(bundle6);
                                startActivity(intent20);
                                break;
                            case R.id.ll_card_own_member:
                                Intent intent21 = new Intent();
                                if (!ResourceManager.getUseNewVip()) {
                                    intent21.setClass(this.i0, VipMoreActivity.class);
                                    intent21.putExtra("id", this.q0);
                                    startActivity(intent21);
                                    break;
                                } else {
                                    String vIPUrl = ResourceManager.getVIPUrl();
                                    if (!TextUtils.isEmpty(vIPUrl)) {
                                        String str5 = vIPUrl + String.format("?uid=%d&terminal=2&androidV=%s", Integer.valueOf(this.q0), SystemInfo.getShareSystem().getA_appver());
                                        intent21.setClass(this.i0, HtmlDisplayActivity.class);
                                        intent21.putExtra("noTitleBar", true);
                                        intent21.putExtra("url", str5);
                                        intent21.putExtra("type", 2);
                                        startActivity(intent21);
                                        break;
                                    }
                                }
                                break;
                            default:
                                switch (id) {
                                    case R.id.ll_user_card_own_juntuan:
                                        com.r.n.g j14 = com.r.n.g.j();
                                        com.r.n.d c14 = com.r.n.d.c();
                                        c14.e("Me");
                                        c14.f("Army");
                                        c14.d("Army");
                                        c14.h(com.r.n.e.Click);
                                        j14.u(c14.b());
                                        if (this.H0 == 0) {
                                            this.j0.startActivity(new Intent((Context) this.j0, (Class<?>) JoinTeamGroupActivity.class));
                                            break;
                                        } else {
                                            Intent intent22 = new Intent((Context) this.j0, (Class<?>) TeamPersonActivity.class);
                                            intent22.putExtra("jid", this.H0);
                                            this.j0.startActivity(intent22);
                                            break;
                                        }
                                    case R.id.ll_user_card_own_kefu:
                                        com.r.n.g j15 = com.r.n.g.j();
                                        com.r.n.d c15 = com.r.n.d.c();
                                        c15.e("Me");
                                        c15.f("CustomerService");
                                        c15.d("CustomerService");
                                        c15.h(com.r.n.e.Click);
                                        j15.u(c15.b());
                                        com.showself.provider.l.a.c().f(getActivity(), "");
                                        break;
                                    case R.id.ll_user_card_own_level:
                                        com.r.n.g j16 = com.r.n.g.j();
                                        com.r.n.d c16 = com.r.n.d.c();
                                        c16.e("Me");
                                        c16.f("UserHome");
                                        c16.d("CreditLevel");
                                        c16.h(com.r.n.e.Click);
                                        j16.u(c16.b());
                                        if (this.E0 != null && this.F0 != null) {
                                            Intent intent23 = new Intent((Context) this.j0, (Class<?>) UserLevelActivity.class);
                                            intent23.putExtra("wealthInfo", this.E0);
                                            intent23.putExtra("starInfo", this.F0);
                                            startActivity(intent23);
                                            break;
                                        } else {
                                            Utils.a1("未获取到财富等级或明星等级");
                                            break;
                                        }
                                        break;
                                    case R.id.ll_user_card_own_liangzhao:
                                        if (this.k0 != null) {
                                            Intent intent24 = new Intent((Context) this.j0, (Class<?>) MyPhotoActivity.class);
                                            Bundle bundle7 = new Bundle();
                                            bundle7.putSerializable("pageInfo", this.k0);
                                            intent24.putExtras(bundle7);
                                            startActivity(intent24);
                                            break;
                                        }
                                        break;
                                    case R.id.ll_user_card_own_mall:
                                        Intent intent25 = new Intent();
                                        r0.v0(this.q0, 0);
                                        Intent intent26 = new Intent();
                                        intent26.setAction("com.showself.receive_mall_update");
                                        this.j0.sendOrderedBroadcast(intent26, null);
                                        com.r.n.g j17 = com.r.n.g.j();
                                        com.r.n.d c17 = com.r.n.d.c();
                                        c17.e("Me");
                                        c17.f("mall");
                                        c17.d("mall");
                                        c17.h(com.r.n.e.Click);
                                        j17.u(c17.b());
                                        if (!ResourceManager.getUseNewStore()) {
                                            intent25.setClass(this.i0, FragmentContainerActivity.class);
                                            intent25.putExtra(PushClientConstants.TAG_CLASS_NAME, StoreShowFragment.class.getName());
                                            startActivity(intent25);
                                            break;
                                        } else {
                                            String storeUrl2 = ResourceManager.getStoreUrl();
                                            if (!TextUtils.isEmpty(storeUrl2)) {
                                                String str6 = storeUrl2 + String.format("?uid=%d&activity=%s", Integer.valueOf(r0.y(this.i0).getUserId()), Utils.f0(this.i0));
                                                intent25.setClass(this.i0, HtmlX5DisplayActivity.class);
                                                intent25.putExtra("url", str6);
                                                intent25.putExtra("noTitleBar", true);
                                                intent25.putExtra("type", 2);
                                                startActivity(intent25);
                                                break;
                                            }
                                        }
                                        break;
                                    default:
                                        switch (id) {
                                            case R.id.tv_card_own_fans_num:
                                            case R.id.tv_card_own_fans_text:
                                                com.r.n.g j18 = com.r.n.g.j();
                                                com.r.n.d c18 = com.r.n.d.c();
                                                c18.e("Me");
                                                c18.f("Fans");
                                                c18.d("FansList");
                                                c18.h(com.r.n.e.View);
                                                j18.u(c18.b());
                                                Intent intent27 = new Intent(this.i0, (Class<?>) MyFansActivity.class);
                                                intent27.putExtra("id", this.l0.getUserId());
                                                startActivity(intent27);
                                                break;
                                            case R.id.tv_card_own_follow_num:
                                            case R.id.tv_card_own_follow_text:
                                                Intent intent28 = new Intent(this.i0, (Class<?>) MyFollowActivity.class);
                                                intent28.putExtra("id", this.l0.getUserId());
                                                startActivity(intent28);
                                                break;
                                        }
                                }
                        }
                }
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        ?? r0 = (com.showself.ui.c) getActivity();
        this.j0 = r0;
        this.i0 = r0.getApplicationContext();
        Bundle arguments = getArguments();
        if (arguments != null) {
            this.q0 = arguments.getInt("id");
            this.C0 = arguments.getBoolean("pushOrPull", false);
            this.G0 = arguments.getBoolean("showBack", false);
        }
        if (bundle != null && bundle.containsKey("pageInfo")) {
            this.k0 = (UserPageInfo) bundle.getSerializable("pageInfo");
        }
        this.l0 = r0.y(this.i0);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        BroadcastReceiver broadcastReceiver = this.y0;
        if (broadcastReceiver != null) {
            this.j0.unregisterReceiver(broadcastReceiver);
        }
    }

    public void onHiddenChanged(boolean z) {
        super.onHiddenChanged(z);
        if (z) {
            return;
        }
        J(this.q0);
    }

    @Override
    public void onResume() {
        super.onResume();
        if (k0.y()) {
            return;
        }
        LoginResultInfo y = r0.y(this.i0);
        this.l0 = y;
        int userId = y.getUserId();
        this.q0 = userId;
        M(userId);
        H(this.q0);
        L(this.q0);
        J(this.q0);
        k();
    }

    @Override
    public void onViewCreated(View view, Bundle bundle) {
        super.onViewCreated(view, bundle);
        O();
    }
}